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

Disassembly:
push ebx
sub esp, 0x18
call fcn.00480380
add dword [eax + 4], 1
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00480590
lea ebx, [eax + 0x40]
mov dword [eax], 1
mov dword [esp], ebx
call fcn.00462950
mov dword [esp], ebx
call fcn.00480110
call fcn.0047fb10
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0xb4]
mov dword [esp + 0x50], 0
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x54], 0
mov ebx, dword [0x4b850c]
mov dword [esp + 0x7c], ebx
xor ebx, ebx
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x20], edi
mov edx, dword [esp + 0xac]
cmp ecx, 1
jne 0x480798
add eax, 0xbcd4d500
adc edx, 0xb8b1aabc
mov dword [esp + 0x28], eax
cmp ecx, eax
mov eax, 0
sbb eax, edx
mov dword [esp + 0x2c], edx
setae byte [esp + 0x35]
cmp dword [esp + 0xa4], 6
movzx ecx, byte [esp + 0x35]
sete al
and al, cl
mov byte [esp + 0x36], al
je 0x4807c0
mov eax, dword [esi - 0x18]
mov ebx, dword [esi - 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esi - 0x10]
mov dword [esp + 0x30], eax
test ebx, ebx
je 0x4808f0
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
js 0x480a76
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.00462760
mov dword [esp + 8], ebp
mov dword [esp + 4], 2
mov dword [esp], edi
call fcn.00462760
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.004627e0
mov eax, 7
jmp 0x48079d
mov eax, 3
mov edx, dword [esp + 0x7c]
sub edx, dword [0x4b850c]
jne 0x480cd4
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x20]
mov dword [esp], edi
call fcn.004627f0
mov dword [esp + 0x30], eax
mov edx, eax
test eax, eax
je 0x480a6c
lea ecx, [esp + 0x64]
mov eax, edi
call fcn.00472a20
mov edx, edi
mov ebx, eax
movzx eax, byte [esp + 0x78]
mov byte [esp + 0x37], al
mov dword [esp + 0x38], eax
call fcn.00472be0
mov dword [esp], edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
call fcn.004627c0
cmp dword [esp + 0x54], 1
sbb eax, 0
mov ecx, eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x1c], eax
cmp ebx, eax
jae 0x4808c2
mov edi, dword [esp + 0x64]
movzx esi, byte [esp + 0x79]
mov dword [esp + 0x18], edi
mov edi, ecx
lea esi, [esi]
xor edx, edx
mov eax, esi
xor ebp, ebp
call fcn.00472be0
mov ecx, ebx
mov edx, eax
lea eax, [esp + 0x58]
mov dword [esp], eax
mov eax, esi
call fcn.00472ca0
xor edx, edx
mov ebx, eax
mov eax, esi
call fcn.00472be0
mov ecx, ebx
mov edx, eax
lea eax, [esp + 0x5c]
mov dword [esp], eax
mov eax, esi
call fcn.00472ca0
xor edx, edx
mov ebx, eax
mov eax, esi
call fcn.00472be0
mov ecx, ebx
mov edx, eax
lea eax, [esp + 0x60]
mov dword [esp], eax
mov eax, esi
call fcn.00472ca0
xor ecx, ecx
mov ebx, eax
lea esi, cs:[esi]
movzx edx, byte [ebx]
add ebx, 1
mov eax, edx
and eax, 0x7f
shl eax, cl
add ecx, 7
or ebp, eax
test dl, dl
js 0x4808a0
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x58]
cmp edi, eax
jae 0x480900
mov eax, dword [esp + 0xa4]
and eax, 1
jne 0x480920
test byte [esp + 0xa4], 8
je 0x4808dd
call fcn.0047fb10
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov edx, 1
cmp edx, edi
sbb eax, ebp
jb 0x4808d8
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00480190
lea esi, [esi]
add eax, dword [esp + 0x5c]
cmp edi, eax
jb 0x480958
mov eax, dword [esp + 0x1c]
cmp ebx, eax
jb 0x480840
jmp 0x4808c2
mov dword [esp + 0x1c], 0
xor ebx, ebx
mov dword [esp + 0x18], 0
mov edi, dword [esp + 0x28]
mov eax, 1
mov ebp, dword [esp + 0x2c]
cmp eax, edi
mov eax, 0
sbb eax, ebp
jae 0x480aac
mov eax, 6
jmp 0x48079d
mov eax, dword [esp + 0x60]
test eax, eax
je 0x480a6c
add eax, dword [esp + 0x68]
mov ebx, eax
test ebp, ebp
je 0x480c4f
mov eax, dword [esp + 0x1c]
lea eax, [eax + ebp - 1]
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x480a6c
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x48], 0x495588
and esi, 8
mov dword [esp + 0x44], esi
jne 0x4809bd
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov eax, 1
mov dword [esp + 0x48], 0x49559c
cmp eax, edi
sbb esi, ebp
jae 0x480cb0
mov dword [esp + 0x4c], ebx
lea esi, [esi]
mov ebx, dword [esp + 0x18]
xor ebp, ebp
xor ecx, ecx
movzx edx, byte [ebx]
add ebx, 1
mov eax, edx
and eax, 0x7f
shl eax, cl
add ecx, 7
or ebp, eax
test dl, dl
js 0x4809d0
cmp ecx, 0x1f
ja 0x4809fb
and edx, 0x40
je 0x4809fb
mov eax, 1
shl eax, cl
neg eax
or ebp, eax
mov dword [esp + 0x1c], ebp
mov edx, ebx
xor esi, esi
xor ecx, ecx
mov edi, ebx
lea esi, cs:[esi]
nop
movzx ebx, byte [edx]
add edx, 1
mov eax, ebx
and eax, 0x7f
shl eax, cl
add ecx, 7
or esi, eax
test bl, bl
js 0x480a10
mov eax, edi
mov edi, ebx
mov ebx, eax
cmp ecx, 0x1f
ja 0x480ad8
and edi, 0x40
je 0x480ad8
mov eax, 1
shl eax, cl
neg eax
or esi, eax
test ebp, ebp
jne 0x480b10
mov byte [esp + 0x36], 1
lea esi, cs:[esi]
nop
lea eax, [ebx + esi]
mov dword [esp + 0x18], eax
jmp 0x4809c8
mov eax, 8
jmp 0x48079d
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x64]
mov eax, edi
call fcn.00472a20
movzx esi, byte [esp + 0x78]
mov edx, edi
mov eax, esi
call fcn.00472be0
mov edx, edi
mov eax, esi
call fcn.00472be0
mov edi, dword [esp + 0x24]
mov dword [edi - 0xc], eax
jmp 0x480750
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov dword [edi - 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [edi - 0xc], ebx
mov dword [edi - 0x14], eax
mov eax, dword [esp + 0x30]
mov dword [edi - 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [edi - 8], eax
jmp 0x48094e
test ebp, ebp
jne 0x480b10
mov byte [esp + 0x36], 1
test esi, esi
jne 0x480a60
cmp byte [esp + 0x36], 0
mov ebx, dword [esp + 0x4c]
je 0x480a6c
test byte [esp + 0xa4], 1
jne 0x480a6c
xor ebp, ebp
jmp 0x480750
test ebp, ebp
jg 0x480bc0
mov eax, dword [esp + 0x44]
test eax, eax
sete al
test byte [esp + 0x35], al
je 0x480b33
mov edi, dword [esp + 0x48]
test edi, edi
jne 0x480c88
mov edx, ebp
mov dword [esp + 0x40], esi
xor edi, edi
xor ecx, ecx
not edx
mov esi, ebx
add edx, dword [esp + 0x70]
lea esi, [esi]
movzx ebx, byte [edx]
add edx, 1
mov eax, ebx
and eax, 0x7f
shl eax, cl
add ecx, 7
or edi, eax
test bl, bl
js 0x480b48
mov ebx, esi
mov esi, dword [esp + 0x40]
test edi, edi
jne 0x480ae1
mov eax, dword [esp + 0xa4]
mov ebx, dword [esp + 0x4c]
and eax, 1
jne 0x480932
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov edx, 1
cmp edx, esi
sbb eax, edi
jb 0x480b9f
mov eax, dword [esp + 0x44]
test eax, eax
je 0x480744
test ebp, ebp
jns 0x480750
mov eax, dword [esp + 0x7c]
sub eax, dword [0x4b850c]
jne 0x480cd9
call fcn.0047f9b0
lea esi, [esi]
movzx eax, byte [esp + 0x37]
cmp al, 0xff
je 0x480c4b
and eax, 7
cmp al, 2
je 0x480c38
jbe 0x480c78
cmp al, 3
je 0x480c40
cmp al, 4
jne 0x480ccf
lea ecx, [ebp*8]
neg ecx
lea eax, [esp + 0x60]
mov edx, dword [esp + 0x3c]
add ecx, dword [esp + 0x70]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
call fcn.00472ca0
mov eax, dword [esp + 0x60]
test eax, eax
je 0x480b6c
mov edx, dword [esp + 0x48]
test edx, edx
je 0x480ae1
lea ecx, [esp + 0x50]
call fcn.004729b0
test al, al
je 0x480ae1
jmp 0x480b6c
lea ecx, [ebp + ebp]
neg ecx
jmp 0x480bef
lea ecx, [ebp*4]
neg ecx
jmp 0x480bef
xor ecx, ecx
jmp 0x480bef
test eax, eax
je 0x480a6c
test byte [esp + 0xa4], 1
jne 0x480a6c
mov eax, dword [esp + 0xa4]
and eax, 8
mov dword [esp + 0x44], eax
jmp 0x480b06
test al, al
je 0x480c40
jmp 0x482e88
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov dword [esp], ebp
lea eax, [esp + 0x64]
call fcn.00472af0
test al, al
jne 0x480ae1
jmp 0x480b6c
mov edi, dword [esp + 0x24]
lea eax, [edi + 0x20]
test byte [edi], 1
je 0x480cbf
mov eax, dword [edi - 0x30]
mov dword [esp + 0x50], eax
mov eax, dword [eax - 0x50]
mov dword [esp + 0x48], eax
jmp 0x4809bd
jmp 0x482e88
call fcn.00464ba0
call fcn.00464ba0
jmp 0x482e9e