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

Disassembly:
sub esp, 0x3c
test byte [esp + 0x4c], 0x10
push ebx
mov ebx, dword [esp + 0x44]
push esi
mov esi, dword [esp + 0x50]
push edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0
je 0x80b77f
test edi, edi
jne 0x80b6fe
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x3c
ret
mov dword [esp + 0x10], 0
cmp dword [edi + 0x30], 0
je 0x80b720
push edi
push 2
push ebx
call fcn.007821c0
add esp, 0xc
test eax, eax
jne 0x80bb26
mov ecx, dword [edi + 0x18]
cmp dword [ecx + 0x1c], 0
lea eax, [ecx + 0xc]
mov dword [esp + 0x18], eax
je 0x80b754
mov esi, dword [edi]
mov eax, dword [esi + 0x14]
mov edx, dword [eax + 0x9c]
and edx, 0x40
nop
mov ecx, dword [ecx + 0x1c]
test edx, edx
jne 0x80b74a
add ecx, dword [esi + 0x28]
cmp dword [ecx + 0x1c], 0
jne 0x80b740
mov esi, dword [esp + 0x1c]
add ecx, 0x14
cmp dword [ecx], 0
jne 0x80b767
cmp dword [ecx + 4], 0
cmove esi, ecx
mov dword [esp + 0x1c], esi
mov eax, dword [edi + 0xc]
mov esi, dword [esp + 0x10]
mov dword [esp + 0xc], eax
push ebp
mov ebp, dword [esp + 0x64]
test ebp, ebp
jne 0x80b7ae
xor ecx, ecx
jmp 0x80b7b1
mov dword [esp + 0x10], 1
test edi, edi
jne 0x80b706
lea eax, [esp + 0x24]
mov dword [esp + 0xc], edi
mov esi, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], esi
jmp 0x80b772
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x68]
test eax, eax
je 0x80b7bc
mov eax, dword [eax + 4]
add ecx, 0x2c
add eax, ecx
mov ecx, dword [ebx + 0x6c]
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x80b7e4
push eax
mov eax, dword [ecx]
call eax
mov edx, eax
add esp, 4
mov eax, dword [esp + 0x34]
add eax, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], eax
test esi, esi
jne 0x80b813
test edi, edi
je 0x80b813
lea ecx, [esp + 0x18]
add eax, 8
push ecx
push eax
push ebx
call fcn.00767980
add esp, 0xc
test eax, eax
jne 0x80bb25
mov esi, dword [esp + 0x18]
add esi, 4
mov dword [esp + 0x30], esi
jmp 0x80b82e
lea ecx, [esp + 0x30]
push ecx
push eax
push ebx
call fcn.00767980
add esp, 0xc
test eax, eax
jne 0x80bb25
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x80b84c
push eax
sub esi, eax
add esi, dword [esp + 0x38]
push 0
push esi
call fcn.0086d370
mov esi, dword [esp + 0x3c]
add esp, 0xc
test byte [ebx + 0x9c], 4
jne 0x80b85d
mov dword [esi], 0x2000000
jmp 0x80b863
mov dword [esi], 2
test byte [ebx + 0x9c], 4
jne 0x80b88d
movzx eax, byte [esp + 0x13]
mov byte [esi + 4], al
movzx eax, byte [esp + 0x12]
mov byte [esi + 5], al
movzx eax, byte [esp + 0x11]
mov byte [esi + 6], al
mov eax, dword [esp + 0x10]
mov byte [esi + 7], al
jmp 0x80b894
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
test byte [ebx + 0x9c], 4
mov ecx, dword [esp + 0x1c]
jne 0x80b8be
movzx eax, byte [ecx + 3]
mov byte [esi + 8], al
movzx eax, byte [ecx + 2]
mov byte [esi + 9], al
movzx eax, byte [ecx + 1]
mov byte [esi + 0xa], al
movzx eax, byte [ecx]
mov byte [esi + 0xb], al
jmp 0x80b8c3
mov eax, dword [ecx]
mov dword [esi + 8], eax
test byte [ebx + 0x9c], 4
jne 0x80b8ea
movzx eax, byte [ecx + 7]
mov byte [esi + 0xc], al
movzx eax, byte [ecx + 6]
mov byte [esi + 0xd], al
movzx eax, byte [ecx + 5]
mov byte [esi + 0xe], al
movzx eax, byte [ecx + 4]
mov byte [esi + 0xf], al
jmp 0x80b8f0
mov eax, dword [ecx + 4]
mov dword [esi + 0xc], eax
test byte [ebx + 0x9c], 4
jne 0x80b917
mov al, byte [esp + 0x63]
mov byte [esi + 0x10], al
mov al, byte [esp + 0x62]
mov byte [esi + 0x11], al
mov al, byte [esp + 0x61]
mov byte [esi + 0x12], al
mov al, byte [esp + 0x60]
mov byte [esi + 0x13], al
jmp 0x80b91e
mov eax, dword [esp + 0x60]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x9c]
and eax, 4
test ebp, ebp
jne 0x80b933
mov dword [esi + 0x14], ebp
add esi, 0x18
jmp 0x80b970
test eax, eax
jne 0x80b955
movzx eax, byte [ebp + 7]
mov byte [esi + 0x14], al
movzx eax, byte [ebp + 6]
mov byte [esi + 0x15], al
movzx eax, byte [ebp + 5]
mov byte [esi + 0x16], al
movzx eax, byte [ebp + 4]
mov byte [esi + 0x17], al
jmp 0x80b95b
mov eax, dword [ebp + 4]
mov dword [esi + 0x14], eax
push dword [ebp + 4]
add esi, 0x18
push dword [ebp]
push esi
call fcn.0086cdf0
add esp, 0xc
add esi, dword [ebp + 4]
mov eax, dword [ebx + 0x9c]
mov ebp, dword [esp + 0x68]
and eax, 4
test ebp, ebp
jne 0x80b988
mov dword [esi], ebp
add esi, 4
jmp 0x80b9c3
test eax, eax
jne 0x80b9a9
movzx eax, byte [ebp + 7]
mov byte [esi], al
movzx eax, byte [ebp + 6]
mov byte [esi + 1], al
movzx eax, byte [ebp + 5]
mov byte [esi + 2], al
movzx eax, byte [ebp + 4]
mov byte [esi + 3], al
jmp 0x80b9ae
mov eax, dword [ebp + 4]
mov dword [esi], eax
push dword [ebp + 4]
add esi, 4
push dword [ebp]
push esi
call fcn.0086cdf0
add esp, 0xc
add esi, dword [ebp + 4]
test byte [ebx + 0x9c], 4
jne 0x80b9ec
mov ecx, dword [esp + 0x6c]
mov eax, ecx
shr eax, 0x18
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, ecx
shr eax, 8
mov byte [esi + 2], al
mov byte [esi + 3], cl
jmp 0x80b9f2
mov eax, dword [esp + 0x6c]
mov dword [esi], eax
test byte [ebx + 0x9c], 4
jne 0x80ba1c
mov ecx, dword [esp + 0x70]
mov eax, ecx
shr eax, 0x18
mov byte [esi + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 5], al
mov eax, ecx
shr eax, 8
mov byte [esi + 6], al
mov byte [esi + 7], cl
jmp 0x80ba23
mov eax, dword [esp + 0x70]
mov dword [esi + 4], eax
test byte [ebx + 0x9c], 4
jne 0x80ba4d
mov ecx, dword [esp + 0x74]
mov eax, ecx
shr eax, 0x18
mov byte [esi + 8], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 9], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xa], al
mov byte [esi + 0xb], cl
jmp 0x80ba54
mov eax, dword [esp + 0x74]
mov dword [esi + 8], eax
test byte [ebx + 0x9c], 4
jne 0x80ba7b
mov al, byte [esp + 0x7b]
mov byte [esi + 0xc], al
mov al, byte [esp + 0x7a]
mov byte [esi + 0xd], al
mov al, byte [esp + 0x79]
mov byte [esi + 0xe], al
mov al, byte [esp + 0x78]
mov byte [esi + 0xf], al
jmp 0x80ba82
mov eax, dword [esp + 0x78]
mov dword [esi + 0xc], eax
cmp dword [esp + 0x14], 0
jne 0x80bac4
test edi, edi
je 0x80bac4
mov eax, dword [esp + 0x18]
xor esi, esi
mov ecx, dword [edi + 0x40]
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
test ecx, ecx
jne 0x80baa3
mov dword [edi + 0x44], eax
mov dword [edi + 0x40], eax
mov eax, dword [edi + 0x18]
pop ebp
pop edi
or dword [eax + 0x5c], 4
mov eax, dword [esp + 0x50]
mov dword [eax], esi
mov dword [eax + 4], 1
mov eax, esi
pop esi
pop ebx
add esp, 0x3c
ret
mov eax, dword [esp + 0x5c]
mov ebp, dword [esp + 0x20]
or eax, 8
push eax
lea eax, [esp + 0x34]
push eax
push ebp
push ebx
call fcn.007b03a0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x80bb0b
test edi, edi
je 0x80bb0b
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 4]
mov ecx, dword [ebp]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax], ecx
cmp ebp, edx
je 0x80bb0b
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov dword [edx], eax
mov dword [edx + 4], ecx
cmp dword [esp + 0x14], 0
jne 0x80bb16
test edi, edi
jne 0x80bb23
push dword [esp + 0x30]
push ebx
call fcn.00767960
add esp, 8
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3c
ret