Function at 0x807880
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, 0x5bc
mov ebx, dword [esp + 0x25d0]
mov eax, dword [esp + 0x25d4]
mov edi, dword [esp + 0x25d8]
mov ecx, dword [esp + 0x25dc]
mov esi, dword [esp + 0x25e0]
mov edx, dword [0x1005044]
mov dword [esp + 0x25ac], edx
xor edx, edx
test ebx, ebx
je 0x807969
mov ebp, dword [ebx + 0x48]
test ebp, ebp
je 0x807970
test edi, edi
je 0x807970
mov edx, dword [ebx + 0x38]
test edx, edx
je 0x807970
lea edx, [esp + 0xa8]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], ebx
mov dword [esp + 0x20], ecx
call fcn.00808c60
test eax, eax
je 0x807969
mov ebp, dword [esp + 0xec]
test ebp, ebp
jne 0x807998
mov edx, dword [esp + 0xcc]
mov eax, dword [esp + 0xc8]
mov ecx, edx
mov dword [esp + 0x28], eax
or ecx, eax
mov dword [esp + 0x2c], edx
je 0x807998
test byte [esp + 0xbc], 0x61
mov ecx, dword [esp + 0x20]
jne 0x807ca0
and esi, 0x400
mov dword [esp + 0x20], esi
jne 0x8079c0
test word [esp + 0xbe], 0xfff7
je 0x8079c0
mov dword [ebx + 0x1c], 4
xor ebp, ebp
jmp 0x80799d
mov dword [ebx + 0x1c], 0x18
xor ebp, ebp
jmp 0x80799d
mov eax, dword [ebx + 0x48]
mov ebp, dword [esp + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x44], eax
test eax, eax
je 0x807d20
lea esi, [esi]
mov ebp, 1
mov eax, dword [esp + 0x25ac]
sub eax, dword [0x1005044]
jne 0x80816f
add esp, 0x25bc
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0x10], 0x1e
mov edx, eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x88]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x3c], ecx
mov dword [esp], eax
call dword [ebx + 0x38]
mov ecx, dword [esp + 0x30]
cmp eax, 0x1e
jne 0x807c90
cmp dword [esp + 0x88], 0x4034b50
jne 0x807cb0
movzx edx, word [esp + 0xa2]
movzx eax, word [esp + 0xa4]
mov esi, dword [ebx + 4]
lea eax, [edx + eax + 0x1e]
xor edx, edx
add eax, dword [esp + 0x38]
adc edx, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], edx
add eax, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
adc edx, dword [esp + 0x3c]
cmp dword [ebx], eax
sbb esi, edx
jb 0x807cb0
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x807df4
mov esi, dword [esp + 0x38]
add eax, esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x807cbe
cmp word [esp + 0xbe], 0
je 0x807cbe
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x68], eax
mov dword [esp + 0x50], edx
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x500], 0
mov dword [esp], eax
call dword [ebx + 0x28]
mov ecx, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x44], eax
je 0x808113
mov dword [esp + 0x70], edi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x30], 0
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x34], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x78], ecx
jmp 0x807c3a
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x48]
mov ebx, esi
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x80], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 4], edx
mov eax, ecx
mov dword [esp + 0x10], ebp
or eax, ebx
setne al
movzx eax, al
add eax, eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x84]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x80]
mov dword [esp + 8], eax
lea eax, [esp + 0x500]
mov dword [esp], eax
call fcn.008183a0
mov ebx, dword [esp + 0x84]
xor edx, edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x80]
sub esi, eax
sbb edi, edx
add dword [esp + 0x48], eax
adc dword [esp + 0x4c], edx
test ebx, ebx
je 0x807c2a
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 4], eax
mov dword [esp], edx
mov edx, dword [esp + 0x70]
call edx
cmp ebx, eax
jne 0x808164
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], ebp
mov dword [esp], edx
call fcn.00804460
xor edx, edx
add dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x30]
adc dword [esp + 0x34], edx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xd4]
cmp dword [esp + 0xd0], ecx
sbb eax, ebx
jb 0x808143
mov eax, dword [esp + 0x28]
sub eax, 1
cmp eax, 1
ja 0x8080e7
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
mov edx, 0x8000
and eax, 0x7fff
sub edx, eax
lea ebp, [ecx + eax]
mov eax, edi
or eax, esi
mov dword [esp + 0x84], edx
jne 0x807b38
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 0x48]
mov ebx, dword [eax + 0x48]
test ebx, ebx
je 0x807d58
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x48]
xor ebx, ebx
lea edx, [eax + ecx]
jmp 0x807b45
mov dword [ebx + 0x1c], 0x14
xor ebp, ebp
jmp 0x80799d
mov dword [ebx + 0x1c], 5
xor ebp, ebp
jmp 0x80799d
mov dword [ebx + 0x1c], 9
xor ebp, ebp
jmp 0x80799d
cmp dword [esp + 0x2c], 0
ja 0x807f71
mov eax, dword [esp + 0x28]
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call edi
mov esi, dword [esp + 0x28]
mov edx, eax
mov eax, dword [esp + 0x2c]
xor edx, esi
or eax, edx
je 0x808067
mov dword [ebx + 0x1c], 0x1f
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x44], eax
test eax, eax
jne 0x80799d
mov ebp, 0xffffffff
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x34]
mov dword [esp], eax
call dword [ebx + 0x2c]
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x807d4a
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x34]
mov dword [esp], eax
call dword [ebx + 0x2c]
xor eax, eax
test ebp, ebp
sete al
mov ebp, eax
jmp 0x80799d
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x68]
mov ebx, eax
cmp eax, ecx
mov ecx, edx
sbb ecx, dword [esp + 0x50]
mov ecx, edx
cmovae ecx, dword [esp + 0x50]
cmovae ebx, dword [esp + 0x68]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x60], ebx
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], edx
mov ebx, eax
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x44]
mov dword [esp], eax
call dword [ecx + 0x38]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
xor eax, ecx
or eax, edx
jne 0x808184
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x48], esi
add dword [esp + 0x38], eax
mov esi, dword [esp + 0x60]
adc dword [esp + 0x3c], edx
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x64]
sub dword [esp + 0x58], eax
sbb dword [esp + 0x5c], edx
mov edx, dword [esp + 0x54]
jmp 0x807b45
mov esi, dword [esp + 0x28]
mov edx, 0x10000
xor eax, eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], 1
cmp edx, esi
mov esi, eax
sbb esi, dword [esp + 0x2c]
mov esi, edx
mov edx, dword [esp + 0x28]
cmovae eax, ecx
cmovae esi, edx
mov dword [esp + 0x50], eax
mov dword [esp + 8], esi
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x68], esi
mov dword [esp], eax
call dword [ebx + 0x28]
mov ecx, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x54], eax
je 0x80811f
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x807f7f
cmp word [esp + 0xbe], 0
jne 0x808195
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x44], eax
test eax, eax
jne 0x807cbe
mov dword [esp + 0x6c], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x48], ebx
mov dword [esp + 0x58], edi
mov dword [esp + 0x60], ecx
jmp 0x807f0e
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00804460
mov edx, dword [esp + 0x34]
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc], ebp
mov dword [esp], eax
mov eax, dword [esp + 0x58]
call eax
mov edx, eax
mov eax, ebx
xor edx, esi
or eax, edx
jne 0x80812d
add dword [esp + 0x38], esi
adc dword [esp + 0x3c], ebx
add dword [esp + 0x30], esi
adc dword [esp + 0x34], ebx
sub dword [esp + 0x28], esi
mov eax, dword [esp + 0x28]
sbb dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x2c]
or ecx, eax
je 0x808174
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xc], ebp
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x50]
cmp ecx, eax
sbb ebx, edx
mov ebx, dword [esp + 0x50]
cmovae ecx, eax
mov eax, dword [esp + 0x38]
cmovae ebx, edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov esi, ecx
mov dword [esp + 8], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x44]
mov dword [esp], eax
call dword [edx + 0x38]
xor eax, esi
or eax, ebx
je 0x807e9b
mov ebp, dword [esp + 0x6c]
mov ebx, dword [esp + 0x48]
mov dword [ebx + 0x1c], 0x14
jmp 0x807d09
mov dword [ebx + 0x1c], 0x1b
xor ebp, ebp
jmp 0x80799d
mov eax, dword [ebx + 0x48]
mov edx, dword [eax + 0x48]
test edx, edx
jne 0x807cbe
xor eax, eax
mov dword [esp + 0x58], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], ecx
jmp 0x80800b
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edx
mov dword [esp], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], eax
call ecx
mov edx, eax
mov eax, edi
xor edx, esi
or eax, edx
jne 0x80813a
add dword [esp + 0x38], esi
adc dword [esp + 0x3c], edi
add dword [esp + 0x20], esi
adc dword [esp + 0x24], edi
sub dword [esp + 0x28], esi
mov eax, dword [esp + 0x28]
sbb dword [esp + 0x2c], edi
mov ecx, dword [esp + 0x2c]
or ecx, eax
je 0x80797b
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x50]
cmp ecx, eax
sbb ebp, edx
mov ebp, dword [esp + 0x50]
cmovae ebp, dword [esp + 0x2c]
cmovae ecx, eax
mov edx, dword [esp + 0x38]
mov edi, ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
mov esi, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xc], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call dword [ebx + 0x38]
xor eax, esi
or eax, edi
je 0x807fb0
mov ebp, dword [esp + 0x58]
jmp 0x807f65
mov edi, dword [ebx + 0x48]
mov edx, dword [esp + 0x20]
mov eax, dword [edi + 0x48]
mov dword [esp + 0x44], eax
test edx, edx
jne 0x807989
mov esi, dword [esp + 0x28]
xor eax, eax
mov dword [esp], eax
mov dword [esp + 8], esi
mov esi, dword [esp + 0x54]
mov dword [esp + 4], esi
call fcn.00804460
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
xor edx, dword [esp + 0xd4]
xor eax, dword [esp + 0xd0]
or eax, edx
je 0x8080ff
mov eax, 0xd
mov dword [ebx + 0x1c], eax
mov ebp, 0xffffffff
cmp dword [edi + 0x48], 0
jne 0x807d31
jmp 0x807d20
cmp dword [esp + 0x28], 0
mov ebp, dword [esp + 0x7c]
mov ebx, dword [esp + 0x6c]
jne 0x80818f
mov edi, dword [ebx + 0x48]
jmp 0x8080b1
mov esi, dword [esp + 0x20]
mov eax, 0xb
cmp dword [esp + 0xc0], esi
jne 0x8080d0
jmp 0x8080d8
mov dword [ebx + 0x1c], 0x10
jmp 0x807d09
mov dword [ebx + 0x1c], 0x10
xor ebp, ebp
jmp 0x80799d
mov ebp, dword [esp + 0x6c]
mov ebx, dword [esp + 0x48]
jmp 0x807d02
mov ebp, dword [esp + 0x58]
jmp 0x807d02
mov ebx, dword [esp + 0x6c]
mov eax, 0xb
mov dword [ebx + 0x1c], eax
or ebp, 0xffffffff
mov eax, dword [ebx + 0x48]
cmp dword [eax + 0x48], 0
jne 0x807d39
jmp 0x807d20
mov ebx, dword [esp + 0x6c]
mov eax, 0x1f
jmp 0x80814c
call fcn.00401690
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x6c]
mov edi, dword [ebx + 0x48]
jmp 0x8080b1
mov ebx, dword [esp + 0x6c]
mov eax, 0x14
jmp 0x80814c
mov ebp, dword [esp + 0x28]
jmp 0x808152
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
xor esi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x2c], esi
jmp 0x807ab4