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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5682dc
push eax
mov dword fs:[0], esp
sub esp, 0x638
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, 1
cmp dword [edi + 0x800], esi
je 0x4097cd
cmp dword [edi + 0xfc], esi
jl 0x4097cd
mov eax, dword [edi + 0xa0c]
lea ecx, [edi + 0x804]
lea edx, [esp + 0x440]
push ecx
push edx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [esp + eax + 0x440]
mov eax, dword [edi + 0xfc]
cmp eax, esi
mov dword [esp + 0x20], ebp
jne 0x409450
mov eax, dword [edi + 0xa10]
test eax, eax
jne 0x409429
mov eax, dword [edi + 0x118]
cmp eax, 2
je 0x409429
cmp eax, 3
push 0
push ebp
mov ecx, edi
jne 0x40938f
call fcn.00408af0
push 0
lea ecx, [esp + 0xcc]
call fcn.0041dd10
lea ecx, [esp + 0x440]
push 4
push ecx
lea ecx, [esp + 0xd0]
mov dword [esp + 0x658], 0
call fcn.00423e80
lea ecx, [esp + 0xc8]
call fcn.0041da60
test eax, eax
jl 0x409344
push 0xffffff
push eax
lea ecx, [esp + 0xd0]
call fcn.0041e6a0
push 0x46
lea ecx, [esp + 0xcc]
call fcn.0041dc60
mov edx, dword [esp + 0x658]
push 3
push edx
lea ecx, [esp + 0xd0]
call fcn.004236c0
lea ecx, [esp + 0xc8]
mov dword [esp + 0x650], 0xffffffff
mov dword [esp + 0xc8], 0x5716b0
call fcn.0041dd30
jmp 0x4097cd
call fcn.00408af0
push 0
lea ecx, [esp + 0xcc]
call fcn.0041dd10
lea eax, [esp + 0x440]
push 5
push eax
lea ecx, [esp + 0xd0]
mov dword [esp + 0x658], esi
call fcn.00423e80
lea ecx, [esp + 0xc8]
call fcn.00439bd0
test eax, eax
jne 0x4093e2
mov ecx, dword [esp + 0x658]
push eax
push ecx
call fcn.00418610
add esp, 8
jmp 0x409402
mov edx, dword [esp + 0x658]
push 0x46
push 0
push 0
push 0
lea eax, [esp + 0xd8]
push edx
push eax
call fcn.00411550
add esp, 0x18
lea ecx, [esp + 0xc8]
mov dword [esp + 0x650], 0xffffffff
mov dword [esp + 0xc8], 0x5716b0
call fcn.0041dd30
jmp 0x4097cd
push 0
push ebp
mov ecx, edi
call fcn.00408af0
mov ecx, dword [esp + 0x658]
lea edx, [esp + 0x440]
push ecx
push edx
call fcn.00405030
add esp, 8
jmp 0x4097cd
mov ebx, dword [esp + 0x658]
push 0x5ba42c
push ebx
call fcn.00502a9a
mov esi, eax
add esp, 8
test esi, esi
jne 0x40947a
push eax
push ebx
call fcn.00418610
add esp, 8
jmp 0x4097cd
mov eax, dword [edi + 0x104]
mov ebx, dword [edi + 0xfc]
mov ecx, dword [edi + 0x100]
push 1
push eax
lea edx, [esp + 0x44]
dec ebx
push ecx
push edx
mov dword [esp + 0x2c], ebx
call fcn.004113c0
mov ecx, dword [esp + 0x64]
lea eax, [ebx + ebx*4]
push esi
push 1
lea edx, [ecx + eax*4]
lea eax, [esp + 0x54]
push 0x8c
push eax
mov dword [esp + 0x74], edx
mov byte [esp + 0x71], bl
call fcn.00502f6f
xor ecx, ecx
add esp, 0x20
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
test ebx, ebx
mov dword [esp + 0x38], ecx
jle 0x4094f5
push esi
push 1
lea edx, [esp + 0x30]
push 0x14
push edx
call fcn.00502f6f
add esp, 0x10
dec ebx
jne 0x4094e0
push esi
call fcn.00502dec
add esp, 4
lea ecx, [esp + 0xc8]
mov ebx, eax
push 0
call fcn.0041dd10
push 0
push ebp
mov ecx, edi
mov dword [esp + 0x658], 2
call fcn.00408af0
lea eax, [esp + 0x440]
push 0
push eax
lea ecx, [esp + 0xd0]
call fcn.00423e80
push 0
push 0
mov ebp, 1
push 0
push ebp
lea ecx, [esp + 0xd8]
call fcn.00423140
lea ecx, [esp + 0xc8]
call fcn.00421370
mov ecx, dword [edi + 0x104]
mov edx, dword [edi + 0x100]
push 0
push 0x60
push ecx
lea eax, [esp + 0xd4]
push edx
push eax
push esi
call fcn.00411420
add esp, 0x18
lea ecx, [esp + 0xc8]
mov dword [esp + 0x650], 0xffffffff
mov dword [esp + 0xc8], 0x5716b0
call fcn.0041dd30
push esi
call fcn.00502dec
sub eax, ebx
push esi
mov dword [esp + 0x60], eax
call fcn.005029b1
mov ecx, dword [esp + 0x660]
push 0x5ba4a0
push ecx
call fcn.00502a9a
mov esi, eax
lea edx, [esp + 0x4c]
push esi
push ebp
push 0x8c
push edx
call fcn.00502f6f
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
add esp, 0x20
mov dword [esp + 0x10], ebp
lea ebx, [ecx + eax]
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jl 0x4097c4
mov dword [esp + 0x18], 0x8c
lea ebp, [edi + 0x128]
push 0
lea ecx, [esp + 0x288]
call fcn.0041dd10
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x650], 3
cmp eax, 2
je 0x409682
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
push edx
push eax
mov ecx, edi
call fcn.00408af0
lea ecx, [esp + 0x440]
push 0
push ecx
lea ecx, [esp + 0x28c]
call fcn.00423e80
lea ecx, [esp + 0x284]
call fcn.004b2e70
test eax, eax
jne 0x409674
mov edx, dword [esp + 0x658]
push 0x18
push edx
call fcn.00418610
add esp, 8
jmp 0x40977f
push 0x46
lea ecx, [esp + 0x288]
call fcn.0041dc60
push 0
push ebx
push esi
call fcn.00502d33
add esp, 0xc
lea ecx, [esp + 0x284]
push 0
call fcn.0041e140
test eax, eax
je 0x4096bd
push 3
push esi
lea ecx, [esp + 0x28c]
call fcn.00423710
lea ecx, [esp + 0x284]
call fcn.0041dd30
jmp 0x409720
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
push eax
push ecx
mov ecx, edi
call fcn.00408af0
lea edx, [esp + 0x24]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x444]
push eax
push ecx
call fcn.0041d630
mov eax, dword [esp + 0x30]
add esp, 0xc
test eax, eax
je 0x40970f
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x409720
push esi
push 1
push eax
push ecx
call fcn.00502f6f
add esp, 0x10
mov eax, dword [esp + 0x14]
test eax, eax
je 0x409720
push eax
call fcn.0050283f
add esp, 4
push esi
call fcn.00502dec
mov dx, word [ebp - 4]
push 0
mov word [esp + 0x34], dx
mov cx, word [ebp]
mov word [esp + 0x36], cx
mov dx, word [ebp + 4]
mov word [esp + 0x38], dx
mov cx, word [ebp + 8]
mov edx, eax
mov dword [esp + 0x3c], ebx
sub edx, ebx
mov ebx, eax
mov eax, dword [esp + 0x20]
mov word [esp + 0x3a], cx
push eax
push esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x38], 1
call fcn.00502d33
push esi
push 1
lea ecx, [esp + 0x40]
push 0x14
push ecx
call fcn.00502f6f
add esp, 0x20
lea ecx, [esp + 0x284]
mov dword [esp + 0x650], 0xffffffff
mov dword [esp + 0x284], 0x5716b0
call fcn.0041dd30
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add ecx, 0x14
inc eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
add ebp, 0x1c
cmp eax, ecx
mov dword [esp + 0x10], eax
jle 0x409605
push esi
call fcn.005029b1
add esp, 4
mov ecx, dword [esp + 0x648]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x644
ret 8