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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ea690
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x14]
test dword [ebx + 0x14], 0x4000
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0x18]
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x14], al
jne 0x408da7
movzx eax, byte [ebp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [ebp + 0x10]
push ebx
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
call edx
mov eax, esi
jmp 0x408f7a
lea edi, [esp + 0x2c]
mov eax, ebx
call fcn.00406ec0
mov edi, eax
mov dword [esp + 0x80], 0
call fcn.0040ac00
mov dword [esp + 0x80], 0xffffffff
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
test edi, edi
je 0x408e16
push 0
lea ecx, [esp + 0x20]
call fcn.004c89d3
mov eax, dword [edi + 4]
test eax, eax
je 0x408df6
cmp eax, 0xffffffff
jae 0x408df6
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x1c]
not esi
call fcn.004c89fb
and esi, edi
je 0x408e16
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
cmp byte [ebp + 0x1c], 0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x80], 1
lea esi, [esp + 0x54]
je 0x408e76
call fcn.0040a2c0
mov edi, eax
lea esi, [esp + 0x38]
mov byte [esp + 0x80], 2
call fcn.00408810
mov esi, 0x10
mov byte [esp + 0x80], 1
cmp dword [esp + 0x68], esi
jb 0x408eae
mov eax, dword [esp + 0x54]
push eax
jmp 0x408ea6
call fcn.0040a2a0
mov edi, eax
lea esi, [esp + 0x38]
mov byte [esp + 0x80], 3
call fcn.00408810
mov esi, 0x10
mov byte [esp + 0x80], 1
cmp dword [esp + 0x68], esi
jb 0x408eae
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004c9387
add esp, 4
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x20]
mov edx, dword [esp + 0x48]
test ecx, ecx
jl 0x408ed4
jg 0x408ec2
test eax, eax
je 0x408ed4
mov dword [esp + 0x20], ecx
cmp eax, edx
jbe 0x408ed4
sub eax, edx
mov dword [esp + 0x20], ecx
mov edi, eax
jmp 0x408ed6
xor edi, edi
mov eax, dword [ebx + 0x14]
and eax, 0x1c0
cmp eax, 0x40
je 0x408f12
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov bl, byte [esp + 0x14]
push edx
push eax
mov eax, edi
lea edi, [esp + 0x24]
call fcn.0040a240
mov ecx, dword [eax]
mov ebx, dword [esp + 0x38]
mov dword [ebp + 0xc], ecx
mov edx, dword [eax + 4]
add esp, 8
mov dword [ebp + 0x10], edx
mov edx, dword [esp + 0x48]
xor edi, edi
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], esi
jae 0x408f20
lea eax, [esp + 0x38]
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x3c]
push ecx
call fcn.0040a590
mov ecx, dword [eax]
mov dword [ebp + 0xc], ecx
mov eax, dword [eax + 4]
xor edx, edx
push eax
mov dword [ebp + 0x10], eax
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov bl, byte [esp + 0x28]
mov eax, edi
mov edi, dword [esp + 0x3c]
push ecx
call fcn.0040a240
add esp, 0x18
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x4c], esi
jb 0x408f78
mov edx, dword [esp + 0x38]
push edx
call fcn.004c9387
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004c9392
mov esp, ebp
pop ebp
ret 0x18