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

Disassembly:
sub esp, 0x4c
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
push edi
mov edi, ecx
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x409ab1
mov ebp, dword [edi + 0x2c]
mov eax, dword [ebx + 0x2c]
cmp eax, ebp
ja 0x409abd
lea ebp, [edi + 4]
mov eax, ebp
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], ecx
lea ecx, [ebx + 0x14]
mov edx, dword [eax + 8]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x34], eax
call fcn.0040c0d0
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x30]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x14]
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x10]
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x20]
cmp eax, ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
je 0x4098df
mov edi, dword [esp + 0x3c]
mov ecx, 0x42
mov esi, eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x34]
call fcn.00411390
lea ecx, [esp + 0x24]
call fcn.00411390
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jne 0x4098b0
mov edi, dword [esp + 0x10]
lea esi, [edi + 0x14]
mov edx, esi
mov eax, dword [edx]
mov dword [esp + 0x24], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x28], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [edx + 0xc]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.0040c0f0
mov ecx, ebp
mov ebx, eax
mov edx, dword [ecx]
mov dword [esp + 0x48], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x4c], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x50], edx
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], eax
call fcn.0040c0f0
mov edx, esi
mov dword [esp + 0x60], eax
mov eax, dword [edx]
mov dword [esp + 0x48], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x4c], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x50], eax
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x24]
mov dword [esp + 0x54], ecx
push edx
lea ecx, [esp + 0x4c]
call fcn.0040c0f0
cmp dword [esp + 0x60], eax
jae 0x409a0d
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x38]
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov ecx, esp
mov dword [eax + 0xc], edx
mov eax, ebp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x78]
push ecx
call fcn.00410cc0
add esp, 0x34
test ebx, ebx
jbe 0x409a83
mov ecx, edi
call fcn.0040a600
dec ebx
jne 0x409a01
jmp 0x409a83
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], eax
mov eax, dword [esp + 0x3c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [edx + 8], eax
mov eax, dword [esi]
mov dword [edx + 0xc], ecx
mov ecx, dword [esi + 4]
mov edx, esp
sub esp, 0x10
mov dword [edx], eax
mov eax, dword [esi + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0xc]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x54]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x58]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x5c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x78]
push edx
call fcn.00410d60
add esp, 0x34
test ebx, ebx
jbe 0x409a83
mov ecx, edi
call fcn.0040a980
dec ebx
jne 0x409a79
mov eax, dword [esp + 0x60]
test eax, eax
je 0x409ab1
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x4c], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x50], ecx
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x58], edx
call fcn.0040f090
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 4
lea esi, [ebx + 4]
lea ecx, [esp + 0x48]
push esi
call fcn.0040c0d0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], ecx
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
call fcn.0040f090
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov dword [esp + 0x54], esi
lea esi, [edi + 4]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x1c]
mov ebp, dword [esi]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x24], ebp
mov ebp, dword [esi + 4]
cmp eax, edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x3c], eax
mov ebp, dword [esi + 8]
mov dword [esp + 0x40], ecx
mov esi, dword [esi + 0xc]
mov dword [esp + 0x30], esi
je 0x409b88
mov esi, eax
mov eax, dword [esp + 0x28]
mov edi, ebp
add ebp, 0x108
mov ecx, 0x42
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x409b6d
mov eax, dword [esp + 0x30]
add eax, 4
mov dword [esp + 0x30], eax
mov ebp, dword [eax]
mov dword [esp + 0x24], ebp
lea edx, [ebp + 0xf78]
mov dword [esp + 0x28], edx
lea ecx, [esp + 0x34]
call fcn.00411390
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jne 0x409b39
mov edi, dword [esp + 0x10]
mov edx, ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebx, dword [ebx + 0x1c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], ecx
mov ecx, 5
lea esi, [esp + 0x48]
lea edi, [esp + 0x34]
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x58], eax
cmp edx, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x48], ecx
mov esi, edx
je 0x409bf4
push esi
lea ecx, [esp + 0x38]
call fcn.004113d0
add esi, 0x108
cmp esi, ebp
jne 0x409bf0
mov esi, dword [edi + 4]
add edi, 4
lea ebp, [esi + 0xf78]
cmp esi, ebx
jne 0x409bd0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 4