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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x45b170]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], eax
mov ecx, dword [edi + 0x2b9]
test ecx, ecx
je 0x409a4d
mov eax, dword [ecx]
call dword [eax]
test byte [edi + 9], 8
mov ebx, eax
mov esi, dword [ebx + 0x21c]
mov dword [esp + 0xc], esi
je 0x409857
mov esi, dword [ebx + 0x2b5]
mov dword [esp + 0xc], esi
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x10]
test al, al
je 0x40986c
mov eax, dword [ebx + 0x269]
mov dword [esp + 0xc], eax
lea ecx, [edi - 0x2d5]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
jne 0x409888
mov eax, dword [ebx + 0x301]
mov dword [esp + 0xc], eax
mov ecx, dword [edi + 0x2b9]
mov eax, dword [ecx]
call dword [eax + 0x18]
xor ecx, ecx
push 8
pop esi
mov dword [esp + 0x24], eax
mov eax, esi
mov dword [edi + 0x11], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
cmp dword [ebx], ecx
jle 0x409a09
lea ecx, [ebx + 0xc]
mov dword [esp + 0x10], ecx
mov eax, dword [ecx - 8]
mov edx, dword [edi - 0x1ff]
add edx, dword [ebx + 0x210]
add eax, dword [ebx + 0x20c]
mov ecx, dword [ecx]
mov esi, dword [edi - 0x1f7]
sub ecx, dword [ebx + 0x214]
sub esi, dword [ebx + 0x218]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
mov byte [esp + 0x3c], 0
test edx, edx
je 0x40992a
push dword [esp + 0x14]
mov eax, dword [edx]
push dword [edi + 4]
lea ecx, [edi - 0x2d5]
push ecx
mov ecx, edx
call dword [eax]
push eax
lea ecx, [esp + 0x3c]
call fcn.00434e8e
jmp 0x409958
mov eax, dword [esp + 0x14]
test eax, eax
js 0x409940
push eax
lea ecx, [edi + 0x2bd]
call fcn.00434cbf
jmp 0x409942
xor eax, eax
test eax, eax
je 0x40994a
mov eax, dword [eax]
jmp 0x40994c
xor eax, eax
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x40]
call fcn.00434de6
mov eax, dword [ebx + 0x208]
mov edx, dword [edi - 0x295]
or eax, 0x20
cmp byte [ebx + 0x351], 0
push eax
je 0x4099ae
mov ecx, dword [edi + 0x11]
lea eax, [esp + 0x1c]
push eax
mov eax, ecx
imul eax, eax, 0x44
add eax, 0x95
add eax, edi
push eax
shl ecx, 4
lea eax, [edi + 0x15]
add eax, ecx
mov ecx, dword [esp + 0x2c]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push dword [esp + 0x4c]
push eax
call fcn.0041c02a
mov eax, dword [esp + 0x34]
add esp, 0x1c
jmp 0x4099d1
push dword [ebx + 0x204]
mov ecx, dword [esp + 0x28]
push dword [esp + 0x14]
lea eax, [esp + 0x34]
push dword [esp + 0x44]
push eax
call fcn.0041bfaf
mov eax, dword [esp + 0x30]
add esp, 0x14
add dword [edi + 0x11], eax
push 8
pop esi
mov eax, esi
sub eax, dword [edi + 0x11]
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
call fcn.00434d18
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
add ecx, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
cmp eax, dword [ebx]
jl 0x4098bc
mov ecx, dword [edi + 0x11]
cmp ecx, esi
jae 0x409a4d
mov eax, ecx
imul eax, eax, 0x44
lea ebx, [edi + 0x95]
add ebx, eax
mov eax, ecx
shl eax, 4
lea edx, [edi + 0x15]
add edx, eax
mov dword [esp + 0x10], edx
sub esi, ecx
xor eax, eax
mov edi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, ebx
stosd dword es:[edi], eax
call fcn.00434e73
mov edx, dword [esp + 0x10]
add edx, 0x10
add ebx, 0x44
mov dword [esp + 0x10], edx
dec esi
jne 0x409a2d
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004363cf
mov esp, ebp
pop ebp
ret 8