Function at 0x809ec0
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, 0xcc
xor esi, esi
mov edi, eax
mov dword [esp + 0x2c], edx
mov eax, dword [0x1006044]
mov dword [esp + 0x10bc], eax
xor eax, eax
mov eax, 0x15
cmp eax, dword [edi]
mov eax, esi
sbb eax, dword [edi + 4]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
jb 0x809f30
mov eax, 8
mov dword [edi + 0x1c], eax
xor eax, eax
mov edx, dword [esp + 0x10bc]
sub edx, dword [0x1006044]
jne 0x80a56e
add esp, 0x10cc
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [esp + 0x68]
mov eax, edi
call fcn.00809c20
test eax, eax
je 0x80a410
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x6c]
lea eax, [esp + 0xbc]
mov dword [esp + 0x10], 0x16
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov eax, dword [edi + 0x44]
mov dword [esp + 0x30], edx
mov dword [esp], eax
call dword [edi + 0x38]
cmp eax, 0x16
jne 0x80a070
cmp dword [esp + 0xbc], 0x6054b50
jne 0x809f08
mov edx, dword [esp + 0x30]
mov eax, 0x4b
cmp eax, edx
sbb esi, ebp
jge 0x80a080
lea eax, [esp + 0x70]
mov dword [esp + 8], 0xffffffec
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0xc]
mov dword [esp], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], ebp
mov dword [esp + 0x10], 0x14
call fcn.007df270
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [edi + 0x44]
mov dword [esp], eax
call dword [edi + 0x38]
cmp eax, 0x14
jne 0x80a080
cmp dword [esp + 0x70], 0x7064b50
jne 0x80a080
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
add eax, 0xffffffc8
adc edx, 0xffffffff
cmp eax, esi
mov eax, edx
sbb eax, ecx
jb 0x809f08
lea eax, [esp + 0x84]
mov dword [esp + 0x10], 0x38
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [edi + 0x44]
mov dword [esp], eax
call dword [edi + 0x38]
cmp eax, 0x38
mov eax, dword [edi + 0x48]
mov dword [esp + 0x30], eax
jne 0x80a087
cmp dword [esp + 0x84], 0x6064b50
jne 0x80a087
mov dword [eax + 0x34], 1
jmp 0x80a087
mov eax, edi
mov edi, ebp
mov dword [esp], eax
call fcn.007de1d8
lea esi, [esi]
mov eax, 0x14
jmp 0x809f0d
mov eax, dword [edi + 0x48]
mov dword [esp + 0x30], eax
mov ebx, dword [esp + 0xc8]
movzx esi, word [esp + 0xc6]
movzx eax, word [esp + 0xc4]
movzx ebp, word [esp + 0xc0]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x30]
mov dword [edi + 0x10], esi
movzx edx, word [esp + 0xc2]
mov ebx, dword [ebx + 0x34]
mov ecx, dword [esp + 0xcc]
test ebx, ebx
jne 0x80a420
movzx ebx, bp
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], 0
cmp eax, esi
jne 0x80a4d8
mov ecx, dword [esp + 0x3c]
mov eax, ecx
or eax, edx
je 0x80a102
cmp ecx, 1
jne 0x80a4d8
cmp edx, 1
jne 0x80a4d8
mov eax, 0x2e
mov ebp, dword [esp + 0x38]
xor ebx, ebx
mul esi
mov ecx, ebp
cmp ebp, eax
mov ebp, ebx
sbb ebp, edx
jb 0x80a400
mov eax, ecx
mov ecx, dword [edi + 4]
add eax, dword [esp + 0x40]
mov edx, ebx
adc edx, dword [esp + 0x44]
cmp dword [edi], eax
sbb ecx, edx
jb 0x80a400
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
and ebx, 0x800
mov dword [edi + 8], eax
mov dword [esp + 0x58], ebx
mov dword [edi + 0xc], edx
test esi, esi
je 0x80a4bd
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov ebx, eax
cmp dword [eax + 8], ecx
jb 0x80a500
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov ebp, ebx
mov dword [eax + 4], ecx
cmp dword [ebx + 0x18], esi
jb 0x80a51f
mov dword [ebx + 0x14], esi
mov ebx, dword [esp + 0x58]
test ebx, ebx
jne 0x80a1a1
mov ebx, dword [edi + 0x10]
mov eax, ebp
cmp dword [ebp + 0x28], ebx
jb 0x80a551
mov dword [ebp + 0x24], ebx
mov ebp, eax
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x10], ebx
mov eax, dword [ebp]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x44]
mov dword [esp], eax
call dword [edi + 0x38]
cmp eax, ebx
jne 0x80a070
mov eax, dword [edi + 0x48]
mov edx, dword [edi + 0x10]
mov eax, dword [eax]
test edx, edx
je 0x80a4bd
cmp ebx, 0x2d
jbe 0x80a400
mov dword [esp + 0x2c], 0
mov ebx, eax
mov ebp, edi
jmp 0x80a2ee
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov eax, esi
not eax
or eax, edi
je 0x80a254
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
not eax
or eax, edx
je 0x80a254
mov ecx, dword [ebx + 0xa]
test ecx, ecx
jne 0x80a234
mov eax, esi
mov edx, edi
xor eax, dword [esp + 0x48]
xor edx, dword [esp + 0x4c]
or eax, edx
jne 0x80a54a
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov ecx, eax
or ecx, edx
je 0x80a254
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, eax
or ecx, edx
je 0x80a54a
movzx eax, word [ebx + 0x22]
cmp eax, 0xffff
je 0x80a4d1
cmp dword [esp + 0x3c], eax
je 0x80a272
cmp eax, 1
jne 0x80a4d1
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov eax, esi
not eax
or eax, edi
je 0x80a29f
mov eax, dword [ebx + 0x2a]
xor edx, edx
mov ecx, dword [ebp + 4]
add eax, esi
adc edx, edi
add eax, 0x1e
adc edx, 0
cmp dword [ebp], eax
sbb ecx, edx
jb 0x80a54a
test byte [ebx + 9], 0x20
jne 0x80a5d8
movzx edx, word [ebx + 0x1c]
movzx eax, word [ebx + 0x1e]
mov ecx, dword [esp + 0x38]
lea eax, [edx + eax + 0x2e]
movzx edx, word [ebx + 0x20]
add eax, edx
cmp ecx, eax
jb 0x80a54a
sub ecx, eax
add dword [esp + 0x2c], 1
add ebx, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jae 0x80a5d1
cmp dword [esp + 0x38], 0x2d
jbe 0x80a54a
cmp dword [ebx], 0x2014b50
jne 0x80a54a
mov edi, dword [ebp + 0x48]
mov eax, dword [edi]
mov esi, dword [edi + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.007df290
mov ecx, dword [esp + 0x2c]
mov dword [esi + ecx*4], eax
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x80a323
mov eax, dword [edi + 0x20]
mov dword [eax + ecx*4], ecx
xor edx, edx
mov eax, dword [ebx + 0x14]
mov edi, dword [edi + 0x38]
xor ecx, ecx
mov dword [esp + 0x34], edx
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x30], eax
movzx esi, word [ebx + 0x1e]
mov dword [esp + 0x4c], ecx
movzx eax, word [ebx + 0x1c]
mov dword [esp + 0x48], edx
mov ecx, dword [ebx + 0x2a]
test edi, edi
jne 0x80a1fb
test esi, esi
je 0x80a1fb
mov edi, dword [esp + 0x48]
cmp dword [esp + 0x30], edi
mov dword [esp + 0x50], ecx
mov edi, dword [esp + 0x34]
sbb edi, dword [esp + 0x4c]
mov dword [esp + 0x54], 0
mov edi, dword [esp + 0x48]
cmovae edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
mov edx, edi
mov edi, dword [esp + 0x4c]
cmovae edi, dword [esp + 0x34]
cmp edx, ecx
mov ecx, edi
sbb ecx, dword [esp + 0x54]
cmovb edx, dword [esp + 0x50]
cmovb edi, dword [esp + 0x54]
not edx
or edx, edi
jne 0x80a1fb
movzx edx, ax
lea eax, [esi + edx + 0x2e]
cmp dword [esp + 0x38], eax
jb 0x80a573
lea edi, [ebx + edx + 0x2e]
xor ecx, ecx
mov dword [esp + 0x50], ebx
jmp 0x80a3f1
movzx eax, word [edi + 2]
movzx ebx, word [edi]
lea edx, [eax + 4]
cmp esi, edx
jb 0x80a3f6
cmp bx, 1
je 0x80a5f5
add edi, edx
mov edx, 0xfffffffc
sub edx, eax
add esi, edx
je 0x80a5e4
cmp esi, 3
ja 0x80a3c8
mov dword [esp], ecx
mov edi, ebp
call fcn.007de1d8
mov eax, 9
jmp 0x809f0d
mov eax, 7
jmp 0x809f0d
mov ebx, dword [esp + 0x9c]
mov edx, 0x2b
cmp edx, dword [esp + 0x88]
mov edx, 0
sbb edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0xac]
mov eax, dword [esp + 0xa4]
mov esi, dword [esp + 0xa8]
mov dword [esp + 0x38], ebx
mov ebp, dword [esp + 0xa0]
mov ebx, dword [esp + 0xb0]
jae 0x80a400
cmp ecx, 1
jne 0x80a4d8
cmp esi, 0
ja 0x80a4e2
mov dword [edi + 0x10], eax
mov esi, eax
cmp ebp, 0
ja 0x80a4e2
cmp ebx, 0
ja 0x80a4ec
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0xb8]
mov edx, dword [esp + 0x98]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ecx
jmp 0x80a0de
xor eax, eax
mov edx, dword [esp + 0x58]
test edx, edx
je 0x80a4f6
mov eax, 1
jmp 0x809f12
mov edi, ebp
lea esi, [esi]
nop
mov eax, 0xa
jmp 0x809f0d
mov eax, 2
jmp 0x809f0d
mov eax, 0xf
jmp 0x809f0d
mov edx, dword [edi + 0x48]
call fcn.0080a610
jmp 0x80a4c7
mov dword [esp], 0
mov edx, eax
mov eax, edi
call fcn.00805740
test eax, eax
je 0x80a540
mov esi, dword [edi + 0x10]
mov ebx, dword [edi + 0x48]
jmp 0x80a16d
mov dword [esp], 0
lea edx, [ebx + 0x10]
mov ecx, esi
mov eax, edi
call fcn.00805740
test eax, eax
je 0x80a540
mov ebp, dword [edi + 0x48]
jmp 0x80a183
mov edi, ebp
mov eax, 0x10
jmp 0x809f0d
mov edi, ebp
jmp 0x80a400
xor ecx, ecx
lea edx, [ebp + 0x20]
mov eax, edi
mov dword [esp], ecx
mov ecx, ebx
call fcn.00805740
test eax, eax
je 0x80a540
mov eax, dword [edi + 0x48]
jmp 0x80a19c
call fcn.00401690
mov dword [esp], esi
mov dword [esp + 0x5c], edx
call fcn.007de1e0
mov edi, eax
test eax, eax
je 0x80a53e
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x10], esi
add eax, 0x2e
adc edx, 0
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x54], edx
xor edx, edx
add eax, dword [esp + 0x50]
adc edx, dword [esp + 0x54]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp + 0x44]
mov dword [esp], eax
call dword [ebp + 0x38]
cmp eax, esi
jne 0x80a061
mov ecx, edi
jmp 0x80a3c2
mov edi, ebp
jmp 0x80a4bf
mov edi, ebp
mov eax, 5
jmp 0x809f0d
mov ebx, dword [esp + 0x50]
mov dword [esp], ecx
call fcn.007de1d8
jmp 0x80a1fb
mov eax, dword [ebp + 0x48]
mov esi, 1
mov ebx, dword [esp + 0x50]
mov dword [eax + 0x34], esi
mov dword [eax + 0x38], esi
jmp 0x80a5e8