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

Disassembly:
sub esp, 0x70
push ebx
push ebp
mov ebp, dword [esp + 0x2c4]
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 0x4089e0
sub eax, edi
mov dword [esp + 0x44], eax
jne 0x408a13
mov eax, dword [esp + 0x84]
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, 0x70
ret
push 2
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.00401450
add esp, 0xc
mov edi, 0x47ab38
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 0x408a6c
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x168]
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, 0x70
ret
mov edi, 0x47ac08
lea esi, [esp + 0x10]
xor eax, eax
mov byte [esp + 0x11], 0
repe cmpsb byte [esi], byte es:[edi]
jne 0x408ab7
mov eax, dword [esp + 0x168]
cdq
sub eax, edx
mov edx, dword [esp + 0x84]
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, 0x70
ret
push 0x4a7cd4
call fcn.00401040
xor ecx, ecx
mov cl, byte [ebp]
xor eax, eax
mov esi, 0xffff
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], esi
push ecx
call fcn.00401810
add esp, 8
test eax, eax
je 0x408b09
movsx edx, byte [ebp]
xor eax, eax
mov al, byte [ebp + 1]
shl edx, 8
mov dword [esp + 0x74], 2
and eax, 0xff
xor eax, edx
and eax, esi
jmp 0x408b1b
xor eax, eax
mov al, byte [ebp]
mov dword [esp + 0x74], 1
and eax, 0xff
lea ecx, [esp + 0x48]
push ecx
push 0x4a7310
push 0x9c4
lea edx, [esp + 0x64]
push edx
push 6
push eax
mov eax, dword [esp + 0x218]
push eax
call dword [0x479030]
mov ecx, dword [esp + 0x2bc]
mov edx, dword [esp + 0x60]
mov ebp, dword [esp + 0x178]
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
lea ebx, [edx + ecx]
mov ecx, dword [esp + 0x160]
mov edx, dword [esp + 0x64]
sub ecx, ebp
mov ebp, dword [esp + 0x2c0]
sub ecx, eax
sub ecx, ebp
add ecx, edx
mov edx, dword [0x48eb14]
mov edi, eax
lea eax, [ecx + edx - 1]
add esi, 3
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1f0]
and esi, 0xfffc
cmp eax, 1
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], ebx
jne 0x408dfd
mov eax, dword [esp + 0x2c8]
movzx ecx, byte [esp + 0x2ca]
movzx edx, ah
and eax, 0xff
mov dword [esp + 0x40], eax
or eax, 0xffffffff
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], dl
mov dword [esp + 0x24], eax
mov edi, edi
or ecx, 0xffffffff
mov dword [esp + 0x1c], ecx
test eax, eax
jne 0x408bf3
test ecx, ecx
je 0x408dd9
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x110]
add eax, ecx
imul eax, dword [0x48eb10]
lea ecx, [eax + edx]
mov edx, dword [esp + 0x1c]
add eax, edx
lea ebp, [edi - 1]
add ecx, edx
imul ebp, esi
mov edx, dword [esp + 0xcc]
add eax, ebx
lea edx, [edx + eax*2]
add edx, eax
add ecx, ebx
mov dword [esp + 0x2c], edx
xor edx, edx
add ebp, 0x4a7310
test edi, edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], edx
jle 0x408dd9
mov eax, edx
imul eax, dword [0x48eb10]
xor ebx, ebx
test esi, esi
jle 0x408dc6
mov edx, dword [esp + 0x2c]
add ecx, eax
mov dword [esp + 0x18], ecx
lea ecx, [edx + eax*2]
lea esi, [eax + ecx + 2]
jmp 0x408c70
cmp dword [esp + 0x2d4], 1
movsx eax, byte [ebx + ebp]
jne 0x408cd0
test eax, eax
je 0x408d9f
mov edx, dword [esp + 0x1f4]
cmp edx, 0xff
lea ecx, [eax*4]
je 0x408ca4
imul edx, ecx
sar edx, 8
mov ecx, edx
mov edx, dword [esp + 0x2d0]
cmp edx, 0xff
je 0x408cb9
imul ecx, edx
sar ecx, 8
mov edi, dword [esp + 0x18]
movzx edi, byte [edi]
add ecx, edi
cmp ecx, edx
jle 0x408cc8
mov ecx, edx
mov edi, dword [esp + 0x18]
mov byte [edi], cl
jmp 0x408cd7
mov edx, dword [esp + 0x2d0]
test eax, eax
je 0x408d9f
cmp eax, 0x40
mov ecx, dword [esp + 0x1f4]
jne 0x408d0a
cmp ecx, 0xff
jl 0x408d0a
mov ax, word [esp + 0x10]
mov cl, byte [esp + 0x40]
lea edx, [esi - 2]
mov word [edx], ax
mov byte [edx + 2], cl
jmp 0x408d9f
shl eax, 2
cmp ecx, 0xff
je 0x408d1d
imul ecx, eax
sar ecx, 8
mov eax, ecx
cmp edx, 0xff
je 0x408d2b
imul eax, edx
sar eax, 8
cmp eax, edx
jle 0x408d31
mov eax, edx
movzx edx, byte [esi - 2]
mov edi, dword [esp + 0x34]
shl edx, 8
mov ecx, 0xff
sub ecx, eax
add edx, ecx
mov dl, byte [edx*4 + 0x4a86e0]
shl edi, 8
add edi, eax
add dl, byte [edi*4 + 0x4a86e0]
mov edi, dword [esp + 0x30]
mov byte [esi - 2], dl
movzx edx, byte [esi - 1]
shl edx, 8
add edx, ecx
mov dl, byte [edx*4 + 0x4a86e0]
shl edi, 8
add edi, eax
add dl, byte [edi*4 + 0x4a86e0]
mov byte [esi - 1], dl
movzx edx, byte [esi]
shl edx, 8
add edx, ecx
mov ecx, dword [esp + 0x40]
mov dl, byte [edx*4 + 0x4a86e0]
shl ecx, 8
add ecx, eax
add dl, byte [ecx*4 + 0x4a86e0]
mov byte [esi], dl
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
inc ebx
inc edx
add esi, 3
cmp ebx, eax
mov dword [esp + 0x18], edx
jl 0x408c70
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, eax
inc edx
sub ebp, esi
cmp edx, edi
mov dword [esp + 0x14], edx
jl 0x408c44
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
inc ecx
cmp ecx, 2
mov dword [esp + 0x1c], ecx
jl 0x408be7
inc eax
cmp eax, 2
mov dword [esp + 0x24], eax
jl 0x408be0
mov eax, dword [esp + 0x3c]
imul eax, dword [0x48eb10]
mov ecx, dword [esp + 0x110]
mov edx, dword [esp + 0xcc]
add ecx, eax
add ecx, ebx
add eax, ebx
movzx ebx, byte [esp + 0x2c6]
lea ebp, [edi - 1]
imul ebp, esi
mov dword [esp + 0x28], ecx
lea ecx, [edx + eax*2]
add ecx, eax
mov eax, dword [esp + 0x2c4]
mov dword [esp + 0x2c], ecx
movzx ecx, ah
and eax, 0xff
mov edx, eax
xor eax, eax
add ebp, 0x4a7310
test edi, edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ecx
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], cl
mov dword [esp + 0x14], eax
jle 0x409034
mov edi, dword [esp + 0x1ec]
imul eax, dword [0x48eb10]
test esi, esi
mov dword [esp + 0x18], 0
jle 0x40901b
mov ecx, dword [esp + 0x28]
add ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2c]
lea esi, [ecx + eax*2]
add esi, eax
lea ecx, [ecx]
cmp dword [esp + 0x2d4], 1
mov eax, dword [esp + 0x18]
movsx eax, byte [eax + ebp]
jne 0x408f09
test eax, eax
je 0x408ff4
cmp edi, 0xff
lea ecx, [eax*4]
je 0x408ed1
imul edi, ecx
sar edi, 8
mov ecx, edi
mov edi, dword [esp + 0x2d0]
cmp edi, 0xff
je 0x408ee6
imul ecx, edi
sar ecx, 8
mov edi, dword [esp + 0x1c]
movzx edi, byte [edi]
add ecx, edi
mov edi, dword [esp + 0x2d0]
cmp ecx, edi
jle 0x408efc
mov ecx, edi
mov edi, dword [esp + 0x1c]
mov byte [edi], cl
mov edi, dword [esp + 0x1ec]
test eax, eax
je 0x408ff4
cmp eax, 0x40
jne 0x408f35
cmp dword [esp + 0x2d0], 0xff
jne 0x408f37
mov ax, word [esp + 0x10]
mov ecx, esi
mov word [ecx], ax
mov byte [ecx + 2], dl
jmp 0x408ff4
jl 0x408f49
mov ax, word [esp + 0x10]
mov ecx, esi
mov word [ecx], ax
mov byte [ecx + 2], dl
jmp 0x408ff4
shl eax, 2
cmp edi, 0xff
je 0x408f5c
imul edi, eax
sar edi, 8
mov eax, edi
mov ecx, dword [esp + 0x2d0]
cmp ecx, 0xff
je 0x408f71
imul eax, ecx
sar eax, 8
cmp eax, ecx
jle 0x408f77
mov eax, ecx
movzx edi, byte [esi]
shl edi, 8
mov ecx, 0xff
sub ecx, eax
add edi, ecx
shl ebx, 8
add ebx, eax
mov dword [esp + 0x40], edx
mov dl, byte [edi*4 + 0x4a86e0]
add dl, byte [ebx*4 + 0x4a86e0]
movzx edi, byte [esi + 1]
mov ebx, dword [esp + 0x30]
shl edi, 8
add edi, ecx
mov byte [esi], dl
mov dl, byte [edi*4 + 0x4a86e0]
movzx edi, byte [esi + 2]
shl ebx, 8
add ebx, eax
add dl, byte [ebx*4 + 0x4a86e0]
shl edi, 8
add edi, ecx
mov byte [esi + 1], dl
mov edx, dword [esp + 0x40]
mov ecx, edx
shl ecx, 8
add ecx, eax
mov al, byte [edi*4 + 0x4a86e0]
mov bl, byte [ecx*4 + 0x4a86e0]
mov edi, dword [esp + 0x1ec]
add al, bl
mov ebx, dword [esp + 0x34]
mov byte [esi + 2], al
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc ecx
inc eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
add esi, 3
cmp eax, ecx
jl 0x408ea0
mov esi, ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
inc eax
sub ebp, esi
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x408e73
mov edi, ecx
movsx esi, word [esp + 0x68]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x16c]
sub eax, edi
push 0x4a7cd4
mov edi, eax
add esi, edx
call fcn.00401060
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x48]
mov edx, eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x78]
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, 0x70
ret