Function at 0x40b6e0
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4346b8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x443d44]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
xor esi, esi
push esi
push 0x43ad0c
mov ecx, edi
call fcn.00402590
push str.C:Program_FilesInternet_Exploreriexplore.exe
lea ecx, [esp + 0x1c]
call fcn.00402230
xor eax, eax
mov dword [esp + 0x90], esi
push 0x44
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x40]
push esi
push eax
mov dword [esp + 0x38], esi
call fcn.00420a90
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
push esi
push str.http_shellopencommand
mov ebx, 1
push SysReAllocString
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x40bb18
mov ecx, dword [esp + 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x1c]
push edx
push esi
lea eax, [esp + 0x2c]
push eax
push esi
push esi
push ecx
call edi
mov edx, dword [esp + 0x1c]
push edx
call fcn.0040c8d3
mov esi, eax
mov eax, dword [esp + 0x20]
push eax
push 0
push esi
call fcn.00420a90
mov eax, dword [esp + 0x30]
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
push esi
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push eax
call edi
push esi
lea ecx, [esp + 0x18]
call fcn.00402230
push esi
mov byte [esp + 0x94], bl
call fcn.0040c8ce
mov ecx, dword [esp + 0x24]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
add eax, 0xffffffff
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403ba0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 2
call fcn.00402760
mov byte [esp + 0x90], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b84f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jge 0x40b85e
or eax, 0xffffffff
jmp 0x40b879
push 0x43bb44
push eax
call fcn.0041edbb
add esp, 8
test eax, eax
jne 0x40b875
or eax, 0xffffffff
jmp 0x40b879
sub eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401d90
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 3
call fcn.00402760
mov byte [esp + 0x90], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b8c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jle 0x40ba6d
push eax
call esi
cmp eax, 0xffffffff
je 0x40ba6d
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.0041ec69
add esp, 8
test eax, eax
je 0x40ba6d
mov eax, dword [esp + 0x14]
mov esi, dword [eax - 0xc]
push 0x5c
push eax
call fcn.0041f823
add esp, 8
test eax, eax
jne 0x40b916
or eax, 0xffffffff
jmp 0x40b91a
sub eax, dword [esp + 0x14]
sub esi, eax
sub esi, ebx
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403ba0
push 0x43bb48
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 4
call fcn.0040bdd0
mov esi, dword [ebp + 8]
push esi
lea ecx, [esp + 0x18]
call fcn.0040bdd0
lea edi, [esp + 0x14]
call fcn.0040be30
cmp dword [ebp + 0x14], 0
je 0x40ba0c
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jl 0x40b9b1
push str.360se
push ecx
call fcn.0041edbb
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40b98e
sub eax, ecx
cmp eax, 0xffffffff
jne 0x40ba10
cmp dword [ecx - 0xc], 0
jl 0x40b9b1
push str.sogouexplorer
push ecx
call fcn.0041edbb
add esp, 8
test eax, eax
je 0x40b9b1
mov ecx, dword [esp + 0x14]
sub eax, ecx
cmp eax, 0xffffffff
jne 0x40ba10
mov eax, dword [esp + 0x18]
call fcn.0040bc00
test eax, eax
je 0x40ba0c
push 0x43bb48
lea ecx, [esp + 0x1c]
call fcn.0040bdd0
push esi
lea ecx, [esp + 0x1c]
call fcn.0040bdd0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40ba40
mov ecx, dword [ebp + 0x10]
push str.iexplore.exe
call fcn.00402510
jmp 0x40ba40
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40ba40
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00402760
mov byte [esp + 0x90], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40baea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40baea
mov ecx, dword [esp + 0x18]
push ecx
call esi
cmp eax, 0xffffffff
je 0x40baea
push 2
push 0x43bb48
lea ecx, [esp + 0x20]
call fcn.0040bed0
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40ba94
xor eax, eax
jmp 0x40baab
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40baa0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.0040bed0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40baea
mov ecx, dword [ebp + 0x10]
push str.iexplore.exe
call fcn.00402510
mov byte [esp + 0x90], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bb91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40bb91
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40bb91
push 2
push 0x43bb48
lea ecx, [esp + 0x20]
call fcn.0040bed0
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40bb43
xor eax, eax
jmp 0x40bb53
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40bb48
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.0040bed0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40bb91
push str.iexplore.exe
mov ecx, edi
call fcn.00402510
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40bba2
push eax
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40bbb6
mov edx, dword [esp + 0x34]
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ecx], edx
call esi
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bbe1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret