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

Disassembly:
push 0xffffffffffffffff
push 0x4df838
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x517050]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0x78]
cmp ebx, 0x7a
jb 0x4044e9
cmp ebx, 0x100
je 0x40447f
cmp ebx, 0x200
je 0x40442e
or eax, 0xffffffff
jmp 0x404783
xor edi, edi
mov eax, 1
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 0x200
mov dword [esp + 0x34], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x20]
push eax
call fcn.00408d40
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x40446c
push eax
call fcn.0041b414
add esp, 4
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x4044cb
xor eax, eax
mov eax, 0xffffffff
jmp 0x404783
xor edi, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], 0x100
mov dword [esp + 0x64], edi
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x74], edi
call fcn.00408d40
mov eax, dword [esp + 0x54]
cmp eax, edi
je 0x4044b8
push eax
call fcn.0041b414
add esp, 4
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x4044cb
xor eax, eax
mov eax, 0xffffffff
jmp 0x404783
mov esi, dword [esi + 8]
sub esi, eax
mov eax, 0x2aaaaaab
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, 0xffffffff
jmp 0x404783
cmp ebx, 5
jne 0x40455f
push 0xa
call fcn.0041b40f
mov ebp, eax
xor eax, eax
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov word [ebp + 8], ax
mov dword [esi + 0x30], ebp
xor edi, edi
mov dword [esi + 0x34], edi
mov word [ebp], 0x35
mov eax, dword [esi + 0x30]
mov edx, 2
add dword [esi + 0x34], edx
mov ecx, dword [esi + 0x34]
mov word [eax + ecx], 1
add dword [esi + 0x34], edx
add eax, ecx
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
mov word [eax + ecx], di
add dword [esi + 0x34], edx
add eax, ecx
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
add eax, ecx
mov word [eax], 0x35
add dword [esi + 0x34], edx
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
add eax, ecx
add esp, 4
mov word [eax], di
add dword [esi + 0x34], edx
jmp 0x404704
lea eax, [ebx + ebx*2]
add eax, eax
mov edx, dword [eax + eax + 0x51e3fc]
add eax, eax
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x18], edx
call fcn.00403310
mov edi, eax
test edi, edi
je 0x40459b
push edi
call fcn.0041b40f
add esp, 4
push edi
mov ebp, eax
push 0
push ebp
call fcn.0043edc0
add esp, 0xc
jmp 0x40459d
xor ebp, ebp
xor eax, eax
cmp dword [esp + 0x18], eax
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], eax
mov dword [esp + 0x14], eax
jbe 0x4046fd
lea ebx, [eax + 6]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x51e400]
add ecx, dword [esp + 0x14]
mov edi, dword [ecx*4 + 0x51e9d8]
lea eax, [edi - 0x100]
cmp eax, 3
ja case.default.0x4045da
jmp dword [eax*4 + 0x40479c]
mov eax, dword [esi + 0x34]
add eax, dword [esi + 0x30]
mov word [eax], 4
add dword [esi + 0x34], ebx
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
add eax, ecx
mov word [eax], 4
add dword [esi + 0x34], 0xfffffffc
jmp 0x40466b
mov eax, dword [esi + 0x34]
add eax, dword [esi + 0x30]
mov word [eax], 4
add dword [esi + 0x34], ebx
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
mov word [eax + ecx], 4
add dword [esi + 0x34], ebx
add eax, ecx
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
add eax, ecx
mov word [eax], 4
add dword [esi + 0x34], ebx
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
add eax, ecx
mov word [eax], 4
add dword [esi + 0x34], 0xfffffff0
jmp 0x40466b
mov eax, dword [esi + 0x34]
add eax, dword [esi + 0x30]
mov word [eax], 4
jmp 0x404667
mov eax, dword [esi + 0x34]
add eax, dword [esi + 0x30]
mov word [eax], 3
jmp 0x404667
mov eax, dword [esi + 0x34]
add eax, dword [esi + 0x30]
mov word [eax], di
add dword [esi + 0x34], 2
lea ecx, [esp + 0x20]
mov edx, edi
call fcn.004061e0
cmp byte [esp + 0x2d], 0
je 0x4046ca
add dword [esi + 0x34], 0xfffffffe
cmp edi, 0x103
mov ecx, dword [esi + 0x34]
jne 0x404691
mov edi, 3
mov edx, dword [esp + 0x28]
cmp edx, 0x10000
jne 0x4046a2
mov edx, 0xffff
cmp edi, 1
je 0x4046bb
mov eax, dword [esi + 0x30]
movzx eax, word [ecx + eax]
movzx eax, ax
add ecx, 2
cmp eax, edi
mov dword [esi + 0x34], ecx
jne 0x4046e4
mov eax, dword [esi + 0x34]
add eax, dword [esi + 0x30]
mov word [eax], dx
add dword [esi + 0x34], 2
jmp 0x4046e4
push 0
mov eax, edi
call fcn.00403380
cmp eax, 0xffffffff
jne 0x4046de
add dword [esi + 0x34], 1
jmp 0x4046e4
add eax, 0xfffffffe
add dword [esi + 0x34], eax
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jb 0x4045b6
mov ebx, dword [esp + 0x78]
mov edx, 2
xor edi, edi
mov ecx, dword [esp + 0x7c]
mov eax, dword [esi + 0x34]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ecx
cmp eax, edi
mov dword [esp + 0x70], edx
je 0x404739
mov edx, dword [esp + 0x78]
push edx
add eax, ebp
push eax
push ebp
lea eax, [esp + 0x44]
call fcn.0040ad20
lea ecx, [esp + 0x38]
push ecx
call fcn.00408d40
push ebp
call fcn.0041b414
mov eax, dword [esi + 4]
add esp, 4
cmp eax, edi
jne 0x404757
xor eax, eax
jmp 0x40476d
mov esi, dword [esi + 8]
sub esi, eax
mov eax, 0x2aaaaaab
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea esi, [eax - 1]
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x404781
push eax
call fcn.0041b414
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8