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

Disassembly:
sub esp, 0x64
push ebx
push ebp
mov ebp, dword [esp + 0x2b4]
xor ebx, ebx
or edx, 0xffffffff
xor eax, eax
push esi
mov esi, eax
mov eax, ebp
push edi
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4089c0
sub eax, edi
mov dword [esp + 0x38], eax
jne 0x4089f0
mov eax, dword [esp + 0x78]
mov edi, eax
mov dword [edi], ebx
or ecx, 0xffffffff
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], esi
xor ecx, ecx
mov dword [edi + 0x10], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
push 2
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.00401450
add esp, 0xc
mov edi, 0x475800
lea esi, [esp + 0x10]
mov ecx, 3
xor edx, edx
mov byte [esp + 0x12], 0
repe cmpsb byte [esi], byte es:[edi]
mov ecx, 2
jne 0x408a46
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x158]
mov edi, eax
mov dword [edi], ebx
or esi, 0xffffffff
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
xor ecx, ecx
mov dword [edi + 0x10], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov edi, 0x4758d0
lea esi, [esp + 0x10]
xor eax, eax
mov byte [esp + 0x11], 0
repe cmpsb byte [esi], byte es:[edi]
jne 0x408a8e
mov eax, dword [esp + 0x158]
cdq
sub eax, edx
mov edx, dword [esp + 0x78]
mov edi, edx
mov dword [edi], ebx
or esi, 0xffffffff
mov dword [edi + 4], esi
mov ecx, 1
sar eax, 1
mov dword [edi + 8], ecx
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [edi + 0x10], eax
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0x64
ret
push 0x49a374
call fcn.00401040
xor ecx, ecx
mov cl, byte [ebp]
xor eax, eax
mov esi, 0xffff
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], esi
push ecx
call fcn.00401810
add esp, 8
test eax, eax
mov edi, 1
je 0x408ae5
movsx edx, byte [ebp]
xor eax, eax
mov al, byte [ebp + 1]
shl edx, 8
mov dword [esp + 0x68], 2
and eax, 0xff
xor eax, edx
and eax, esi
jmp 0x408af3
xor eax, eax
mov al, byte [ebp]
mov dword [esp + 0x68], edi
and eax, 0xff
lea ecx, [esp + 0x3c]
push ecx
push 0x4999b0
push 0x9c4
lea edx, [esp + 0x58]
push edx
push 6
push eax
mov eax, dword [esp + 0x208]
push eax
call dword [0x474030]
mov ecx, dword [esp + 0x2ac]
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x2b0]
mov edx, dword [esp + 0x4c]
add esi, ecx
mov ecx, dword [esp + 0x150]
mov dword [esp + 0x2c], esi
sub ecx, dword [esp + 0x168]
mov esi, dword [esp + 0x58]
sub ecx, eax
sub ecx, ebx
mov dword [esp + 0x18], eax
mov eax, dword [0x4811c4]
add ecx, esi
add edx, 3
lea ecx, [ecx + eax - 1]
mov eax, dword [esp + 0x1e0]
and edx, 0xfffc
cmp eax, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], ecx
jne 0x408cf9
mov eax, dword [esp + 0x2b8]
mov ecx, eax
sar ecx, 0x10
sar eax, 8
or ebx, 0xffffffff
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], al
mov dword [esp + 0x30], ebx
jmp 0x408ba0
or eax, 0xffffffff
mov dword [esp + 0x20], eax
test eax, eax
jne 0x408bb3
test ebx, ebx
je 0x408cdd
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
add eax, esi
imul eax, dword [0x4811c0]
mov esi, dword [esp + 0x100]
lea ebp, [eax + esi]
mov esi, dword [esp + 0x2c]
dec ecx
imul ecx, edx
add eax, ebx
add eax, esi
add ebp, ebx
add ebp, esi
mov esi, dword [esp + 0xbc]
lea esi, [esi + eax*2]
add esi, eax
mov eax, dword [esp + 0x18]
xor edi, edi
add ecx, 0x4999b0
test eax, eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], edi
jle 0x408cd9
lea ebx, [ebx]
mov eax, edi
imul eax, dword [0x4811c0]
xor ebx, ebx
test edx, edx
jle 0x408cc2
lea esi, [esi + eax*2]
lea edi, [eax + ebp]
add esi, eax
jmp 0x408c30
movsx eax, byte [ebx + ecx]
test eax, eax
je 0x408ca7
movzx edx, byte [edi]
cmp edx, dword [esp + 0x2c0]
jg 0x408ca7
cmp eax, 0x40
jl 0x408c50
mov eax, 0xff
jmp 0x408c53
shl eax, 2
add eax, edx
mov edx, dword [esp + 0x2c0]
cmp eax, edx
jle 0x408c62
mov eax, edx
mov ebp, dword [esp + 0x1e4]
cmp ebp, 0xff
je 0x408c79
imul ebp, eax
sar ebp, 8
mov eax, ebp
cmp edx, 0xff
je 0x408c87
imul eax, edx
sar eax, 8
cmp eax, edx
jle 0x408c8d
mov eax, edx
mov ebp, dword [esp + 0x34]
mov byte [edi], al
mov ax, word [esp + 0x10]
mov edx, esi
mov word [edx], ax
mov al, byte [esp + 0x2b8]
mov byte [edx + 2], al
mov eax, dword [esp + 0x1c]
inc ebx
inc edi
add esi, 3
cmp ebx, eax
jl 0x408c30
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov edx, eax
mov eax, dword [esp + 0x18]
inc edi
sub ecx, edx
cmp edi, eax
mov dword [esp + 0x14], edi
jl 0x408c10
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 2
mov dword [esp + 0x20], eax
jl 0x408ba7
inc ebx
cmp ebx, 2
mov dword [esp + 0x30], ebx
jl 0x408ba0
mov eax, dword [esp + 0x28]
imul eax, dword [0x4811c0]
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0xbc]
movzx ebx, byte [esp + 0x2b6]
lea edi, [esi - 1]
imul edi, edx
add eax, ebp
lea ecx, [ecx + eax*2]
add ecx, eax
mov eax, dword [esp + 0x2b4]
mov dword [esp + 0x24], ecx
movzx ecx, ah
and eax, 0xff
add edi, 0x4999b0
test esi, esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ecx
mov edx, eax
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], cl
mov dword [esp + 0x14], 0
jle 0x408ebf
mov bp, word [esp + 0x10]
jmp 0x408d70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
imul eax, dword [0x4811c0]
xor esi, esi
test ecx, ecx
mov dword [esp + 0x30], esi
jle 0x408ea4
mov ecx, dword [esp + 0x24]
lea ecx, [ecx + eax*2]
add ecx, eax
jmp 0x408da0
movsx eax, byte [esi + edi]
test eax, eax
je 0x408e90
cmp eax, 0x40
jne 0x408dcb
cmp dword [esp + 0x2c0], 0xff
jne 0x408dcd
mov eax, ecx
mov word [eax], bp
mov byte [eax + 2], dl
jmp 0x408e90
jl 0x408dda
mov eax, ecx
mov word [eax], bp
mov byte [eax + 2], dl
jmp 0x408e90
mov esi, dword [esp + 0x1dc]
shl eax, 2
cmp esi, 0xff
je 0x408df4
imul esi, eax
sar esi, 8
mov eax, esi
mov esi, dword [esp + 0x2c0]
cmp esi, 0xff
je 0x408e09
imul eax, esi
sar eax, 8
cmp eax, esi
jle 0x408e0f
mov eax, esi
movzx ebp, byte [ecx]
shl ebx, 8
add ebx, eax
shl ebp, 8
mov esi, 0xff
sub esi, eax
add ebp, esi
mov dword [esp + 0x20], edx
mov dl, byte [ebp*4 + 0x49ad80]
add dl, byte [ebx*4 + 0x49ad80]
movzx ebx, byte [ecx + 1]
mov ebp, dword [esp + 0x34]
shl ebx, 8
add ebx, esi
shl ebp, 8
mov byte [ecx], dl
mov bl, byte [ebx*4 + 0x49ad80]
add ebp, eax
mov dl, byte [ebp*4 + 0x49ad80]
mov bp, word [esp + 0x10]
add bl, dl
mov edx, dword [esp + 0x20]
mov byte [ecx + 1], bl
movzx ebx, byte [ecx + 2]
shl ebx, 8
add ebx, esi
mov esi, edx
shl esi, 8
add esi, eax
mov al, byte [ebx*4 + 0x49ad80]
mov bl, byte [esi*4 + 0x49ad80]
mov esi, dword [esp + 0x30]
add al, bl
mov ebx, dword [esp + 0x38]
mov byte [ecx + 2], al
mov eax, dword [esp + 0x1c]
inc esi
add ecx, 3
cmp esi, eax
mov dword [esp + 0x30], esi
jl 0x408da0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc eax
sub edi, esi
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x408d70
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x15c]
sub edi, esi
movsx esi, word [esp + 0x5c]
push 0x49a374
add esi, edx
call fcn.00401060
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x30]
mov edx, eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x6c]
add esp, 4
mov dword [edx + 4], edi
mov dword [edx + 8], ecx
pop edi
mov dword [edx + 0xc], esi
pop esi
xor ecx, ecx
pop ebp
mov dword [edx + 0x10], ecx
pop ebx
add esp, 0x64
ret