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

Disassembly:
sub esp, 0x64
push ebx
push ebp
mov ebp, dword [esp + 0x2b8]
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 0x4090a0
sub eax, edi
mov dword [esp + 0x38], eax
jne 0x4090d0
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, 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 0x409126
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x15c]
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, 0x47ac08
lea esi, [esp + 0x10]
xor eax, eax
mov byte [esp + 0x11], 0
repe cmpsb byte [esi], byte es:[edi]
jne 0x40916e
mov eax, dword [esp + 0x15c]
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 0x4a7cd4
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 0x4091c5
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 0x4091d3
xor eax, eax
mov al, byte [ebp]
mov dword [esp + 0x68], edi
and eax, 0xff
lea ecx, [esp + 0x3c]
push ecx
push 0x4a7310
push 0x9c4
lea edx, [esp + 0x58]
push edx
push 6
push eax
mov eax, dword [esp + 0x20c]
push eax
call dword [0x479030]
mov ecx, dword [esp + 0x2b0]
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x2b4]
mov edx, dword [esp + 0x4c]
add esi, ecx
mov ecx, dword [esp + 0x154]
mov dword [esp + 0x2c], esi
sub ecx, dword [esp + 0x16c]
mov esi, dword [esp + 0x58]
sub ecx, eax
sub ecx, ebx
mov dword [esp + 0x18], eax
mov eax, dword [0x48eb14]
add ecx, esi
add edx, 3
lea ecx, [ecx + eax - 1]
mov eax, dword [esp + 0x1e4]
and edx, 0xfffc
cmp eax, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], ecx
jne 0x4093d9
mov eax, dword [esp + 0x2bc]
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 0x409280
or eax, 0xffffffff
mov dword [esp + 0x20], eax
test eax, eax
jne 0x409293
test ebx, ebx
je 0x4093bd
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
add eax, esi
imul eax, dword [0x48eb10]
mov esi, dword [esp + 0x104]
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 + 0xc0]
lea esi, [esi + eax*2]
add esi, eax
mov eax, dword [esp + 0x18]
xor edi, edi
add ecx, 0x4a7310
test eax, eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], edi
jle 0x4093b9
lea ebx, [ebx]
mov eax, edi
imul eax, dword [0x48eb10]
xor ebx, ebx
test edx, edx
jle 0x4093a2
lea esi, [esi + eax*2]
lea edi, [eax + ebp]
add esi, eax
jmp 0x409310
movsx eax, byte [ebx + ecx]
test eax, eax
je 0x409387
movzx edx, byte [edi]
cmp edx, dword [esp + 0x2c4]
jg 0x409387
cmp eax, 0x40
jl 0x409330
mov eax, 0xff
jmp 0x409333
shl eax, 2
add eax, edx
mov edx, dword [esp + 0x2c4]
cmp eax, edx
jle 0x409342
mov eax, edx
mov ebp, dword [esp + 0x1e8]
cmp ebp, 0xff
je 0x409359
imul ebp, eax
sar ebp, 8
mov eax, ebp
cmp edx, 0xff
je 0x409367
imul eax, edx
sar eax, 8
cmp eax, edx
jle 0x40936d
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 + 0x2bc]
mov byte [edx + 2], al
mov eax, dword [esp + 0x1c]
inc ebx
inc edi
add esi, 3
cmp ebx, eax
jl 0x409310
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 0x4092f0
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 2
mov dword [esp + 0x20], eax
jl 0x409287
inc ebx
cmp ebx, 2
mov dword [esp + 0x30], ebx
jl 0x409280
mov eax, dword [esp + 0x28]
imul eax, dword [0x48eb10]
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc0]
movzx ebx, byte [esp + 0x2ba]
lea edi, [esi - 1]
imul edi, edx
add eax, ebp
lea ecx, [ecx + eax*2]
add ecx, eax
mov eax, dword [esp + 0x2b8]
mov dword [esp + 0x24], ecx
movzx ecx, ah
and eax, 0xff
add edi, 0x4a7310
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 0x40959f
mov bp, word [esp + 0x10]
jmp 0x409450
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
imul eax, dword [0x48eb10]
xor esi, esi
test ecx, ecx
mov dword [esp + 0x30], esi
jle 0x409584
mov ecx, dword [esp + 0x24]
lea ecx, [ecx + eax*2]
add ecx, eax
jmp 0x409480
movsx eax, byte [esi + edi]
test eax, eax
je 0x409570
cmp eax, 0x40
jne 0x4094ab
cmp dword [esp + 0x2c4], 0xff
jne 0x4094ad
mov eax, ecx
mov word [eax], bp
mov byte [eax + 2], dl
jmp 0x409570
jl 0x4094ba
mov eax, ecx
mov word [eax], bp
mov byte [eax + 2], dl
jmp 0x409570
mov esi, dword [esp + 0x1e0]
shl eax, 2
cmp esi, 0xff
je 0x4094d4
imul esi, eax
sar esi, 8
mov eax, esi
mov esi, dword [esp + 0x2c4]
cmp esi, 0xff
je 0x4094e9
imul eax, esi
sar eax, 8
cmp eax, esi
jle 0x4094ef
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 + 0x4a86e0]
add dl, byte [ebx*4 + 0x4a86e0]
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 + 0x4a86e0]
add ebp, eax
mov dl, byte [ebp*4 + 0x4a86e0]
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 + 0x4a86e0]
mov bl, byte [esi*4 + 0x4a86e0]
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 0x409480
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 0x409450
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x160]
sub edi, esi
movsx esi, word [esp + 0x5c]
push 0x4a7cd4
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