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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x446d91
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x458210]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push esi
mov eax, dword [0x458210]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ebx, ebx
cmp byte [edi + 0x31a], bl
je 0x409a92
mov byte [edi + 0x318], 1
lea eax, [esp + 0x54]
push 0x5088
push eax
call fcn.004038a2
pop ecx
pop ecx
mov dword [esp + 0x80], ebx
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x409ab9
lea eax, [esp + 0x58]
push eax
push dword [edi + 4]
call dword [0x447294]
cmp dword [edi + 0x250], ebx
je 0x409ad8
lea eax, [edi + 0x23c]
push eax
call fcn.0042dc14
pop ecx
cmp byte [edi + 0x318], bl
jne 0x409c51
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x80], 1
lea eax, [esp + 0x28]
mov byte [edi + 0x318], 1
call fcn.004038e2
mov byte [esp + 0x80], 2
push dword [edi + 4]
lea eax, [esp + 0x1c]
push eax
lea edx, [edi + 0x298]
lea ecx, [edi + 0x70]
call fcn.004046d2
lea eax, [esp + 0x18]
call fcn.004048ab
test eax, eax
je 0x409c38
push 0x3eb
push dword [edi + 4]
call dword [0x447298]
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x20]
mov dword [esp + 0xc], eax
jbe 0x409b58
call fcn.00435ef5
lea eax, [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x1c], esi
jbe 0x409b73
call fcn.00435ef5
cmp dword [esp + 0x10], ebx
je 0x409b83
lea eax, [esp + 0x18]
cmp dword [esp + 0x10], eax
je 0x409b88
call fcn.00435ef5
cmp dword [esp + 0x14], esi
je 0x409c0b
lea esi, [esp + 0x10]
call fcn.0040497e
lea esi, [esp + 0x38]
call fcn.00404921
push 0x448e38
mov eax, esi
push eax
mov byte [esp + 0x88], 3
call fcn.00404940
cmp dword [esp + 0xc], ebx
je 0x409be9
push dword [esp + 0xc]
call dword [0x44726c]
test eax, eax
je 0x409be9
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x409bd8
lea eax, [esp + 0x3c]
push eax
push ebx
push 0xc2
push dword [esp + 0x18]
call dword [0x447268]
push ebx
push 1
lea esi, [esp + 0x40]
mov byte [esp + 0x88], 2
call fcn.00401eb6
lea esi, [esp + 0x10]
call fcn.0040499b
jmp 0x409b64
cmp dword [esp + 0xc], ebx
je 0x409c31
push dword [esp + 0xc]
call dword [0x44726c]
test eax, eax
je 0x409c31
push ebx
push 7
push 0x115
push dword [esp + 0x18]
call dword [0x447278]
mov byte [edi + 0x319], 1
lea esi, [esp + 0x28]
call fcn.004038ee
lea esi, [esp + 0x18]
mov byte [esp + 0x80], bl
call fcn.0040486c
cmp byte [edi + 0x319], bl
jne 0x409c7c
cmp byte [edi + 0x114], bl
je 0x409c66
call fcn.0040b5d6
push ebx
push 1
push 0x111
push dword [edi + 4]
call dword [0x447278]
jmp 0x409d00
mov esi, dword [0x447298]
push 0x3ee
push dword [edi + 4]
call esi
cmp eax, ebx
mov dword [esp + 0xc], eax
je 0x409cb1
push eax
call dword [0x44726c]
test eax, eax
je 0x409cb1
push ebx
push 0x64
push 0x402
push dword [esp + 0x18]
call dword [0x447278]
push 0x3ea
push dword [edi + 4]
call esi
mov esi, eax
cmp esi, ebx
je 0x409d00
push esi
call dword [0x44726c]
test eax, eax
je 0x409d00
lea eax, [esp + 0x38]
push 0x5089
push eax
call fcn.004038a2
cmp dword [esp + 0x58], 8
mov eax, dword [esp + 0x44]
pop ecx
pop ecx
jae 0x409cec
lea eax, [esp + 0x3c]
push eax
push esi
call dword [0x447294]
push ebx
push 1
lea esi, [esp + 0x40]
call fcn.00401eb6
push ebx
push 1
lea esi, [esp + 0x5c]
call fcn.00401eb6
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004357cb
mov esp, ebp
pop ebp
ret