Function at 0x406140
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe0
mov esi, esp
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [esi + 0xc4], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0xc8], 0x3350661b
mov dword [esi + 0xc0], eax
mov dword [esi + 0xbc], ecx
mov dword [esi + 0xb8], edx
mov dword [esi + 0xb4], edi
mov dword [esi + 0xb0], ebx
mov eax, dword [esi + 0xc8]
mov ecx, eax
sub ecx, 0xb95d2b49
mov dword [esi + 0xac], eax
mov dword [esi + 0xa8], ecx
jg 0x4061d5
jmp 0x4061b9
mov eax, dword [esi + 0xac]
sub eax, 0xa0f789e2
mov dword [esi + 0xa4], eax
je 0x406624
jmp 0x4063cb
mov eax, dword [esi + 0xac]
sub eax, 0xe951b240
mov dword [esi + 0xa0], eax
jg 0x40620d
jmp 0x4061f1
mov eax, dword [esi + 0xac]
sub eax, 0xb95d2b4a
mov dword [esi + 0x9c], eax
je 0x406608
jmp 0x4063cb
mov eax, dword [esi + 0xac]
sub eax, 0xfa4ff98b
mov dword [esi + 0x98], eax
jg 0x406245
jmp 0x406229
mov eax, dword [esi + 0xac]
sub eax, 0xe951b241
mov dword [esi + 0x94], eax
je 0x406589
jmp 0x4063cb
mov eax, dword [esi + 0xac]
sub eax, 0x77a2323
mov dword [esi + 0x90], eax
jg 0x40627d
jmp 0x406261
mov eax, dword [esi + 0xac]
sub eax, 0xfa4ff98c
mov dword [esi + 0x8c], eax
je 0x4065f8
jmp 0x4063cb
mov eax, dword [esi + 0xac]
sub eax, 0x13cb2d0f
mov dword [esi + 0x88], eax
jg 0x4062b5
jmp 0x406299
mov eax, dword [esi + 0xac]
sub eax, 0x77a2324
mov dword [esi + 0x84], eax
je 0x406568
jmp 0x4063cb
mov eax, dword [esi + 0xac]
sub eax, 0x3350661a
mov dword [esi + 0x80], eax
jg 0x4062ea
jmp 0x4062d1
mov eax, dword [esi + 0xac]
sub eax, 0x13cb2d10
mov dword [esi + 0x7c], eax
je 0x406643
jmp 0x4063cb
mov eax, dword [esi + 0xac]
sub eax, 0x474f323f
mov dword [esi + 0x78], eax
jg 0x40631c
jmp 0x406303
mov eax, dword [esi + 0xac]
sub eax, 0x3350661b
mov dword [esi + 0x74], eax
je 0x4063d0
jmp 0x4063cb
mov eax, dword [esi + 0xac]
sub eax, 0x6165b342
mov dword [esi + 0x70], eax
jg 0x40634e
jmp 0x406335
mov eax, dword [esi + 0xac]
sub eax, 0x474f3240
mov dword [esi + 0x6c], eax
je 0x406790
jmp 0x4063cb
mov eax, dword [esi + 0xac]
sub eax, 0x63e7be32
mov dword [esi + 0x68], eax
jg 0x406380
jmp 0x406367
mov eax, dword [esi + 0xac]
sub eax, 0x6165b343
mov dword [esi + 0x64], eax
je 0x406633
jmp 0x4063cb
mov eax, dword [esi + 0xac]
sub eax, 0x63e7be33
mov dword [esi + 0x60], eax
je 0x4065c8
jmp 0x406399
mov eax, dword [esi + 0xac]
sub eax, 0x7d291e83
mov dword [esi + 0x5c], eax
je 0x4063e0
jmp 0x4063b2
mov eax, dword [esi + 0xac]
sub eax, 0x7e7d4bd0
mov dword [esi + 0x58], eax
je 0x4065a4
jmp 0x4063cb
jmp 0x4067a6
mov eax, 0x7d291e83
mov dword [esi + 0xc8], eax
jmp 0x4067a6
mov eax, 0
mov ecx, 0x3c
mov edx, 4
mov dword [esi + 0x54], eax
mov eax, edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x4c], ecx
call fcn.0041af70
mov eax, esp
mov dword [esi + 0xcc], eax
mov eax, dword [esi + 0x50]
call fcn.0041af70
mov eax, esp
mov dword [esi + 0xd0], eax
mov eax, dword [esi + 0x50]
call fcn.0041af70
mov eax, esp
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x48], eax
mov eax, ecx
call fcn.0041af70
mov eax, esp
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x44], eax
mov eax, ecx
call fcn.0041af70
mov eax, esp
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x40], eax
mov eax, ecx
call fcn.0041af70
mov eax, esp
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x3c], eax
mov eax, ecx
call fcn.0041af70
mov eax, esp
mov ecx, 0x3c
mov dword [esi + 0x38], eax
mov eax, ecx
call fcn.0041af70
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov dword [esi + 0xd4], eax
mov eax, dword [esi + 0xd0]
mov ecx, dword [esi + 0xc4]
mov dword [eax], ecx
mov eax, dword [esi + 0x48]
mov edx, dword [esi + 0xbc]
mov dword [eax], edx
mov edi, dword [esi + 0x44]
mov ebx, dword [esi + 0xb8]
mov dword [edi], ebx
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0xb4]
mov dword [eax], ecx
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0xb0]
mov dword [eax], ecx
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0xc0]
mov dword [eax], ecx
mov eax, dword [esi + 0xd4]
sub esp, 0xc
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x3c
call fcn.0041ae60
add esp, 0xc
mov eax, dword [esi + 0xd4]
mov dword [eax], 0x3c
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
mov edx, dword [esi + 0xd4]
mov dword [edx + 0x10], ecx
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov edi, dword [esi + 0xd4]
mov dword [edi + 0x14], edx
mov edx, dword [esi + 0x40]
mov edi, dword [edx]
mov ebx, dword [esi + 0xd4]
mov dword [ebx + 0xc], edi
mov edi, dword [esi + 0x44]
mov ebx, dword [edi]
mov eax, dword [esi + 0xd4]
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x48]
mov ebx, dword [eax]
mov eax, dword [esi + 0xd4]
mov dword [eax + 0x1c], ebx
mov eax, dword [0x500dc0]
mov ebx, dword [esi + 0xd4]
sub esp, 4
mov ecx, esp
mov dword [ecx], ebx
call eax
mov ecx, 0x77a2324
cmp eax, 1
setne al
and al, 1
mov byte [esi + 0xdb], al
mov dword [esi + 0xc8], ecx
jmp 0x4067a6
mov eax, 0x7e7d4bd0
mov ecx, 0xe951b241
mov dl, byte [esi + 0xdb]
test dl, 1
cmovne eax, ecx
mov dword [esi + 0xc8], eax
jmp 0x4067a6
mov eax, dword [esi + 0xcc]
mov dword [eax], 0xffffffff
mov dword [esi + 0xc8], 0x6165b343
jmp 0x4067a6
mov eax, 0xfa4ff98c
mov ecx, 0x63e7be33
mov edx, dword [esi + 0xd0]
cmp dword [edx], 0
cmovne eax, ecx
mov dword [esi + 0xc8], eax
jmp 0x4067a6
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + 0x38]
sub esp, 8
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 4], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
mov dword [esi + 0xc8], 0xfa4ff98c
mov dword [esi + 0x34], eax
jmp 0x4067a6
mov eax, 0xb95d2b4a
mov dword [esi + 0xc8], eax
jmp 0x4067a6
mov eax, 0xa0f789e2
mov ecx, dword [esi + 0xcc]
mov dword [ecx], 0
mov dword [esi + 0xc8], eax
jmp 0x4067a6
mov dword [esi + 0xc8], 0x6165b343
jmp 0x4067a6
mov eax, dword [esi + 0xcc]
mov eax, dword [eax]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 0
mov ecx, 0x3c
mov edx, 4
mov dword [esi + 0x30], eax
mov eax, edx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x28], ecx
call fcn.0041af70
mov eax, esp
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x24], eax
mov eax, ecx
call fcn.0041af70
mov eax, esp
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x20], eax
mov eax, ecx
call fcn.0041af70
mov eax, esp
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x1c], eax
mov eax, ecx
call fcn.0041af70
mov eax, esp
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x18], eax
mov eax, ecx
call fcn.0041af70
mov eax, esp
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x14], eax
mov eax, ecx
call fcn.0041af70
mov eax, esp
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x10], eax
mov eax, ecx
call fcn.0041af70
mov eax, esp
mov ecx, 0x3c
mov dword [esi + 0xc], eax
mov eax, ecx
call fcn.0041af70
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0xc4]
mov dword [ecx], edx
mov edi, dword [esi + 0x1c]
mov ebx, dword [esi + 0xbc]
mov dword [edi], ebx
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0xb8]
mov dword [ecx], edx
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0xb4]
mov dword [ecx], edx
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xb0]
mov dword [ecx], edx
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0xc0]
mov dword [ecx], edx
mov ecx, eax
sub esp, 0xc
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x3c
mov dword [esi + 8], eax
call fcn.0041ae60
add esp, 0xc
mov eax, dword [esi + 8]
mov dword [eax], 0x3c
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov dword [eax + 0x10], edx
mov edx, dword [esi + 0x10]
mov edi, dword [edx]
mov dword [eax + 0x14], edi
mov edi, dword [esi + 0x14]
mov ebx, dword [edi]
mov dword [eax + 0xc], ebx
mov ebx, dword [esi + 0x18]
mov eax, dword [ebx]
mov ecx, dword [esi + 8]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x1c]
mov eax, dword [eax]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x500dc0]
sub esp, 4
mov ecx, esp
mov edx, dword [esi + 8]
mov dword [ecx], edx
call eax
mov dword [esi + 0xc8], 0x7d291e83
mov dword [esi + 4], eax
jmp 0x4067a6
mov eax, dword [esi + 0xcc]
mov dword [eax], 0
mov dword [esi + 0xc8], 0xb95d2b4a
jmp 0x406194