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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4
mov eax, dword [0x4c64a4]
push ebx
push esi
inc eax
mov esi, ecx
mov dword [esp + 0x18], esi
mov dword [0x4c64a4], eax
push edi
cmp eax, 0x30
jge 0x43e41e
xor ebx, ebx
mov byte [esp + 0x13], 1
mov eax, ebx
mov byte [esp + 0x22], 1
lea ecx, [esp + 0xa8]
mov dword [esp + 0x14], eax
mov byte [esp + 0x24], bl
call fcn.004057a6
mov edi, dword [ebp + 8]
lea ecx, [esp + 0xa8]
push 0x8000
push edi
call fcn.004057f6
test al, al
je 0x43e438
lea ecx, [esp + 0x98]
call fcn.00407667
lea ecx, [esp + 0x98]
call fcn.00420957
lea ecx, [esp + 0x88]
call fcn.00407667
lea edx, [esp + 0x88]
mov ecx, edi
call fcn.00404750
mov edi, dword [esp + 0xb8]
lea eax, [esp + 0x44]
mov esi, dword [esp + 0xbc]
lea ecx, [esp + 0xa8]
push eax
lea eax, [esp + 0x64]
mov dword [esp + 0x48], 0x18
push eax
call fcn.00405850
push ebx
push esi
push edi
lea ecx, [esp + 0xb4]
call fcn.00405aee
cmp dword [esp + 0x70], 0x21335541
je 0x43e452
lea ecx, [esp + 0x50]
call fcn.00407667
lea ecx, [esp + 0x28]
call fcn.00407667
push ebx
lea eax, [esp + 0x2c]
push ebx
push eax
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x94]
call fcn.0040459b
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x50]
push eax
call fcn.00407b2e
push dword [esp + 0x50]
call dword [0x48f208]
lea ecx, [esp + 0x28]
call fcn.00405904
lea ecx, [esp + 0x50]
call fcn.00405904
push 0x2000
call fcn.00420db6
pop ecx
push eax
lea ecx, [esp + 0x48]
call fcn.0040522e
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x22], 1
jne 0x406ce7
push ecx
push esi
lea ecx, [esp + 0xb0]
call fcn.0040586d
test al, al
je 0x406ce7
mov eax, dword [esp + 0x14]
inc eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
call fcn.00406f5d
push esi
call fcn.00406ecc
push esi
test al, al
je 0x43e7de
call fcn.00406faa
push esi
mov byte [esp + 0x27], bl
call fcn.00422bfc
mov dword [esp + 0x3c], eax
pop ecx
cmp eax, 2
jle 0x406c5b
mov ax, word [esi + eax*2 - 4]
push 0x7f
pop ecx
and ax, cx
movzx eax, ax
push eax
call fcn.0042363d
pop ecx
test eax, eax
jne 0x406d4f
cmp byte [esp + 0x24], 1
je 0x43e7d1
push dword [esp + 0x88]
lea ecx, [esp + 0x7c]
call fcn.00407de1
lea eax, [esp + 0xa8]
mov ecx, edi
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x80]
push eax
push esi
call fcn.004068dc
lea ecx, [esp + 0x78]
mov dword [esp + 0x38], eax
call fcn.00405904
mov eax, dword [esp + 0x38]
test eax, eax
je 0x406d7a
cmp eax, 1
jle 0x406d6d
cmp eax, 3
jg 0x406d64
push dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
mov ecx, edi
push esi
push eax
mov dword [esp + 0x20], eax
call fcn.00407213
cmp byte [esp + 0x23], 1
sete byte [esp + 0x24]
cmp byte [esp + 0x13], 1
je 0x406be2
lea ecx, [esp + 0xa8]
call fcn.00405c6f
push dword [esp + 0x98]
call dword [0x48f208]
mov eax, dword [esp + 0x48]
mov bl, byte [esp + 0x13]
dec dword [eax]
jne 0x406d1a
push eax
call fcn.00420e2c
pop ecx
push esi
call fcn.00420e2c
pop ecx
lea ecx, [esp + 0x88]
call fcn.00405904
lea ecx, [esp + 0x98]
call fcn.00405904
lea ecx, [esp + 0xa8]
call fcn.004057d4
dec dword [0x4c64a4]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esp + 0x38]
cmp word [esi + eax*2 - 2], 0x5f
jne 0x406c5b
jmp 0x43e7c0
cmp eax, 4
jne 0x406d6d
mov byte [esp + 0x22], bl
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x406cd2
mov byte [esp + 0x13], bl
jmp 0x406d6d
push dword [ebp + 0x14]
push 0x4b8348
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.0045f7a1
xor bl, bl
jmp 0x406d3e
push dword [ebp + 0x14]
mov ecx, esi
push 0x4b83d0
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.0045f7a1
jmp 0x406d32
cmp dword [esp + 0x74], 0x36304145
jne 0x406b6f
lea ecx, [esp + 0xa8]
call fcn.00405c6f
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x60]
push 2
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
push dword [eax]
mov byte [esp + 0x7c], bl
call fcn.00404ddd
test eax, eax
jne 0x43e4b1
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x18]
push eax
push 0x4b8400
lea ecx, [esp + 0x6c]
call fcn.0046955b
lea ecx, [esp + 0x60]
test eax, eax
je 0x43e4cd
call fcn.00404e4a
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x20]
push 0x4b83d0
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.0045f7a1
jmp 0x406d1a
call fcn.00404e4a
mov eax, dword [esp + 0x14]
push 4
pop edx
push 0x10
mov edi, dword [eax]
or eax, 0xffffffff
mov dword [esp + 0x1c], edx
mov dword [esp + 0x3c], edi
mov word [esp + 0x34], ax
mov dword [esp + 0x54], 0x48fb78
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call fcn.00420db6
mov esi, eax
mov dword [esp + 0x44], esi
pop ecx
test esi, esi
je 0x43e522
mov dword [esi], 0x48fb78
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
jmp 0x43e528
mov esi, ebx
mov dword [esp + 0x40], esi
or eax, 0xffffffff
mov dword [esp + 0x44], esi
push 5
lea ecx, [esp + 0x2c]
mov word [esp + 0x36], ax
call fcn.00405db2
lea eax, [esp + 0x28]
mov dword [esp + 0x28], edi
push eax
mov ecx, esi
call fcn.0040750f
xor eax, eax
mov dword [esp + 0x3c], ebx
inc eax
cmp edi, eax
mov dword [esp + 0x4c], eax
mov edi, dword [esp + 0x1c]
jl 0x43e740
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add eax, ecx
inc ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x28]
movzx eax, byte [eax]
push eax
mov dword [esp + 0x28], eax
call fcn.00405db2
lea ecx, [esp + 0x28]
call fcn.004673e9
test al, al
je 0x43e5af
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add eax, edx
add edx, 4
mov eax, dword [eax]
mov dword [esp + 0x28], eax
jmp 0x43e6cf
lea ecx, [esp + 0x28]
call fcn.004673d3
test al, al
je 0x43e5db
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add ecx, edx
add edx, 8
mov eax, dword [ecx]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x2c], eax
jmp 0x43e6cf
lea ecx, [esp + 0x28]
call fcn.004673bd
test al, al
je 0x43e600
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add eax, edx
add edx, 8
fld qword [eax]
fstp qword [esp + 0x28]
jmp 0x43e6cf
lea ecx, [esp + 0x28]
call fcn.00405e2a
test al, al
je 0x43e6d3
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
call fcn.0045f73d
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
push eax
cmp ecx, 0x31
jne 0x43e65a
lea ecx, [esp + 0xe4]
call fcn.00407de1
mov ecx, dword [edi + 4]
push dword [esp + 0xe0]
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0xe0]
mov esi, eax
call fcn.00405904
push 1
jmp 0x43e67e
cmp ecx, 0x30
jne 0x43e691
lea ecx, [esp + 0x7c]
call fcn.00407de1
lea eax, [esp + 0x78]
push eax
call fcn.00406839
lea ecx, [esp + 0x78]
mov esi, eax
call fcn.00405904
push ebx
lea ecx, [esp + 0x2c]
call fcn.00405db2
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x40]
jmp 0x43e6c1
cmp ecx, 0x37
jne 0x43e6b8
mov ecx, edi
call fcn.0045f65e
test eax, eax
je 0x43e792
push dword [esp + 0x18]
call fcn.00420e2c
pop ecx
mov ecx, dword [esp + 0x1c]
jmp 0x43e56a
lea ecx, [esp + 0x2c]
call fcn.0046737f
push dword [esp + 0x18]
call fcn.00420e2c
mov edx, dword [esp + 0x20]
pop ecx
mov dword [esp + 0x18], edx
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.0040750f
mov ecx, dword [esp + 0x18]
push 0x7f
pop edx
cmp dword [esp + 0x24], edx
jne 0x43e56a
mov ecx, dword [esi + 8]
cmp ecx, 2
jbe 0x43e726
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4 - 8]
cmp word [eax + 8], dx
je 0x43e726
inc dword [esp + 0x3c]
mov ecx, edi
push 0x3b
pop eax
mov word [esp + 0x24], ax
or eax, 0xffffffff
push eax
lea eax, [esp + 0x28]
push eax
push dword [edi + 0x10]
call fcn.00407213
jmp 0x43e72d
mov ecx, esi
call fcn.0045fc60
mov eax, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x4c], eax
cmp eax, dword [esp + 0x38]
jle 0x43e566
push 5
lea ecx, [esp + 0x2c]
call fcn.00405db2
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
mov ecx, dword [ecx]
call fcn.004672df
lea eax, [esp + 0x44]
push eax
lea ecx, [edi + 0x50]
call fcn.0047fbce
push dword [esp + 0x14]
call fcn.00422d55
mov bl, 1
pop ecx
lea ecx, [esp + 0x50]
call fcn.00407616
lea ecx, [esp + 0x28]
call fcn.00405d9b
jmp 0x406d1a
mov eax, dword [esp + 0x4c]
mov ecx, edi
push 0x48f910
push 0x4b8428
push eax
push dword [ebp + 8]
call fcn.0045f7a1
push dword [esp + 0x18]
call fcn.00420e2c
pop ecx
push dword [esp + 0x14]
call fcn.00422d55
jmp 0x43e77a
xor ecx, ecx
mov byte [esp + 0x23], 1
mov word [esi + eax*2 - 2], cx
jmp 0x406c5b
push esi
mov ecx, edi
call fcn.0045f5f7
jmp 0x406cd2
mov eax, dword [esp + 0x18]
mov ecx, edi
push 0x4b8460
push eax
push dword [ebp + 0x10]
call fcn.0045f7a1
mov byte [esp + 0x13], bl
jmp 0x406ce7