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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1000
or dword [esp], 0
sub esp, 0x1000
or dword [esp], 0
sub esp, 0x5ac
mov esi, dword [esp + 0x25c4]
mov ebp, dword [esp + 0x25c0]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x25c8]
mov ebx, eax
mov edi, ecx
mov dword [esp + 0x2c], ecx
mov eax, edx
mov edx, dword [esp + 0x25cc]
mov ecx, dword [0x1006044]
mov dword [esp + 0x259c], ecx
xor ecx, ecx
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x25d0]
test ebx, ebx
je 0x808628
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x808621
test ebp, ebp
je 0x808615
test edi, edi
je 0x808621
test edx, edx
je 0x808630
mov edi, dword [esp + 0x28]
test edi, edi
jne 0x808630
mov dword [ebx + 0x1c], 0x18
xor eax, eax
jmp 0x808815
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x808621
test esi, esi
je 0x808838
lea edi, [esp + 0x98]
mov ecx, 0x116
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xdc]
test eax, eax
jne 0x808810
mov edi, dword [esp + 0xbc]
mov esi, dword [esp + 0xb8]
mov eax, edi
mov dword [esp + 0x30], esi
or eax, esi
mov dword [esp + 0x34], edi
je 0x808810
test byte [esp + 0xac], 0x61
jne 0x808890
mov eax, dword [esp + 0x20]
and eax, 0x400
mov dword [esp + 0x40], eax
je 0x808868
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], 0
cmp ebp, esi
mov eax, dword [esp + 0x3c]
sbb eax, dword [esp + 0x20]
mov dword [esp + 0x38], ebp
jb 0x8088b0
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x38], edx
mov dword [esp + 0x10], 0x1e
mov edx, eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x78]
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x4c], ecx
mov dword [esp], eax
call dword [ebx + 0x38]
mov edx, dword [esp + 0x38]
cmp eax, 0x1e
jne 0x8088a0
cmp dword [esp + 0x78], 0x4034b50
jne 0x8088c0
movzx ecx, word [esp + 0x92]
movzx eax, word [esp + 0x94]
xor ebp, ebp
lea eax, [ecx + eax + 0x1e]
mov ecx, dword [ebx + 4]
mov edi, eax
add edi, dword [esp + 0x48]
adc ebp, dword [esp + 0x4c]
mov dword [esp + 0x58], edi
add edi, dword [esp + 0x30]
mov dword [esp + 0x5c], ebp
adc ebp, dword [esp + 0x34]
cmp dword [ebx], edi
sbb ecx, ebp
jb 0x8088c0
mov edi, dword [esp + 0x40]
test edi, edi
jne 0x8087d9
cmp word [esp + 0xae], 0
jne 0x8088dc
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x10], esi
mov edi, esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call dword [ebx + 0x38]
xor edi, eax
mov esi, edi
or esi, dword [esp + 0x20]
jne 0x8088a0
mov eax, dword [esp + 0xc0]
mov dword [esp], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call fcn.00804420
cmp eax, dword [esp + 0xb0]
je 0x808810
mov dword [ebx + 0x1c], 0xe
xor eax, eax
jmp 0x808815
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call dword [ebx + 0x38]
xor eax, esi
or eax, dword [esp + 0x20]
jne 0x8088a0
lea esi, [esi]
mov eax, 1
mov edx, dword [esp + 0x259c]
sub edx, dword [0x1006044]
jne 0x808b56
add esp, 0x25ac
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [esp + 0x98]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], ebx
mov dword [esp + 0x30], edx
call fcn.00808c20
mov edx, dword [esp + 0x30]
test eax, eax
jne 0x80864d
xor eax, eax
jmp 0x808815
test word [esp + 0xae], 0xfff7
jne 0x8088ce
mov eax, dword [esp + 0xc4]
mov esi, dword [esp + 0xc0]
mov dword [esp + 0x20], eax
jmp 0x8086a9
mov dword [ebx + 0x1c], 5
xor eax, eax
jmp 0x808815
mov dword [ebx + 0x1c], 0x14
xor eax, eax
jmp 0x808815
mov dword [ebx + 0x1c], 0x1a
xor eax, eax
jmp 0x808815
mov dword [ebx + 0x1c], 9
xor eax, eax
jmp 0x808815
mov dword [ebx + 0x1c], 4
xor eax, eax
jmp 0x808815
mov dword [esp + 0x4f0], 0
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x808b0d
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
add eax, edi
mov dword [esp + 0x64], edx
mov edi, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x60], eax
mov esi, eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x20], 0
mov dword [esp + 0x6c], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], ebx
jmp 0x8089ec
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
mov edx, esi
add eax, ebx
mov dword [esp + 0x70], edx
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
or ebx, edx
jne 0x808a28
mov dword [esp + 0x18], 4
lea ebx, [esp + 0x74]
lea edx, [esp + 0x70]
mov dword [esp + 4], eax
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x4f0]
mov dword [esp + 8], edx
add ebp, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp], eax
call fcn.00818450
xor edx, edx
mov ebp, eax
mov eax, dword [esp + 0x70]
sub esi, eax
sbb edi, edx
add dword [esp + 0x38], eax
mov eax, dword [esp + 0x74]
adc dword [esp + 0x3c], edx
xor edx, edx
add dword [esp + 0x20], eax
adc dword [esp + 0x24], edx
cmp ebp, 1
jne 0x808ad1
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x68]
sub eax, ebp
mov dword [esp + 0x74], eax
mov eax, edi
or eax, esi
jne 0x808968
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x48]
mov edx, dword [eax + 0x48]
test edx, edx
je 0x808a35
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
xor edx, edx
add eax, ebx
jmp 0x808974
mov dword [esp + 0x18], 6
jmp 0x808990
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x64]
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x60], eax
sbb ebx, edx
mov ebx, dword [esp + 0x60]
cmovae ebx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x64]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xc], eax
cmovae ebx, edx
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x38], ecx
mov dword [esp], eax
call dword [ebx + 0x38]
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x38]
xor eax, ebx
or eax, ecx
jne 0x808b5b
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x38], esi
add dword [esp + 0x58], ecx
mov eax, dword [esp + 0x48]
adc dword [esp + 0x5c], ebx
mov esi, ecx
sub dword [esp + 0x40], ecx
mov dword [esp + 0x3c], edi
mov edi, ebx
sbb dword [esp + 0x44], ebx
jmp 0x808974
mov ebx, dword [esp + 0x30]
test ebp, ebp
jne 0x808af1
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x24], eax
je 0x808b68
mov dword [ebx + 0x1c], 0xd
or ebp, 0xffffffff
mov eax, dword [ebx + 0x48]
mov edi, dword [esp + 0x28]
or edi, dword [eax + 0x48]
je 0x808ba9
xor eax, eax
test ebp, ebp
sete al
jmp 0x808815
mov eax, dword [esp + 0x28]
test eax, eax
je 0x808bbf
test edx, edx
je 0x808628
xor esi, esi
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], esi
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
xor ecx, ecx
mov dword [esp + 0x30], ecx
mov esi, dword [esp + 0x30]
mov dword [esp + 0x34], ecx
mov edi, dword [esp + 0x34]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
jmp 0x808923
call fcn.00401690
mov ebx, dword [esp + 0x30]
mov dword [ebx + 0x1c], 0xb
jmp 0x808aee
mov eax, dword [esp + 0x68]
cmp dword [esp + 0x20], eax
jne 0x808ae7
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp], eax
call fcn.00804420
cmp eax, dword [esp + 0xb0]
je 0x808af1
mov dword [ebx + 0x1c], 0xe
jmp 0x808aee
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x34]
mov dword [esp], eax
call dword [ebx + 0x2c]
jmp 0x808b01
mov edx, dword [esp + 0x30]
xor eax, eax
mov ecx, 0x10000
mov ebp, dword [esp + 0x34]
mov edi, eax
mov dword [esp + 4], 1
cmp ecx, edx
sbb edi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
cmovae eax, ebp
cmovae ecx, edi
mov dword [esp + 0x64], eax
mov dword [esp + 8], ecx
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x60], ecx
mov dword [esp], eax
call dword [ebx + 0x28]
mov dword [esp + 0x48], eax
test eax, eax
jne 0x808b2f
mov dword [ebx + 0x1c], 0x10
xor eax, eax
jmp 0x808815