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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x164
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0x110]
mov ecx, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x64]
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x15c]
mov dword [esp + 0xb8], ecx
push edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0x48]
and ecx, 1
or ecx, 2
mov dword [esp + 0x14], edx
xor edx, edx
mov dword [esp + 0x138], ecx
mov ecx, dword [eax + 0x1f8]
cmp ecx, edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x84], 0xffffffff
jne 0xb8700b
mov dword [esp + 0x13c], 1
jmp 0xb87016
mov edx, dword [ecx + 4]
inc edx
mov dword [esp + 0x13c], edx
mov edx, dword [eax + 0x60]
mov dword [esp + 0x14c], ecx
xor ecx, ecx
mov dword [esp + 0x144], ecx
mov dword [esp + 0x140], ecx
mov dword [esp + 0x154], ecx
mov dword [esp + 0x158], ecx
mov dword [esp + 0x15c], ecx
lea ecx, [esp + 0x138]
push ecx
push edi
push eax
mov dword [esp + 0x154], edx
mov dword [esp + 0x15c], edi
call fcn.00b66970
mov eax, dword [edi + 0x40]
add esp, 0xc
cmp eax, 4
jle 0xb87084
lea edx, [eax*4]
push edx
call fcn.00b69da0
add esp, 4
mov dword [esp + 0xbc], eax
mov eax, dword [edi + 0x44]
mov ecx, dword [esi + 8]
add eax, ebx
cmp eax, ecx
jle 0xb870ab
push esi
call fcn.00b8bda0
mov edx, dword [edi + 0x44]
mov eax, dword [esi + 8]
mov ecx, dword [esi]
add edx, ebx
add esp, 4
cmp edx, eax
mov dword [esp + 0x1c], ecx
jg 0xb87090
mov ebx, dword [esp + 0x14]
xor ecx, ecx
mov cl, byte [ebx]
mov eax, ecx
and eax, 0xff
cmp eax, 0x61
ja 0xb8b845
jmp dword [eax*4 + 0x10032b18]
push eax
push 0x10083b28
call fcn.00ba85a0
add esp, 8
mov eax, dword [esp + 0x18]
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x3c]
push esi
mov dword [edi + 4], eax
call fcn.00bb1740
add esp, 4
push 0xffffffffffffffff
push 0x10083b18
push esi
call fcn.00bb1270
add esp, 4
push eax
call fcn.00bb35d0
push 0
push 0x10083b18
push 0x10083b10
push 0x10083b08
push esi
call fcn.00bb18b0
mov ecx, dword [edi]
mov edx, dword [edi + 4]
add esp, 0x20
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov esi, dword [esp + 0x3c]
mov edi, dword [ebp + 8]
mov dword [esp + 0x30], 1
mov ebx, dword [esp + 0x30]
jmp 0xb8b8c5
test byte [edi + 0x100], 4
jne 0xb8b921
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
push ecx
push edx
call fcn.00b8c240
add esp, 0xc
test eax, eax
je 0xb8b921
mov ecx, dword [esp + 0x18]
mov dword [esi + 4], ecx
mov edx, dword [esp + 0x40]
push edx
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
push ecx
push edi
call fcn.00b65d50
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x100]
add esp, 0x10
or eax, 4
mov dword [esp + 0x1c], edx
mov dword [edi + 0x100], eax
cmp dword [esp + 0x84], 0xffffffff
je 0xb8b9ff
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
push ecx
push 1
push edx
call fcn.00b8c400
add esp, 0xc
test eax, eax
mov dword [esp + 0x44], eax
je 0xb8b9ff
mov edi, dword [esp + 0xbc]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [edi + eax*4]
jle 0xb8b9d5
mov edx, dword [esp + 0x1c]
lea esi, [edx + ecx*4]
mov eax, dword [esi]
mov dword [esp + 0x10], eax
mov ebx, dword [eax]
dec ecx
sub esi, 4
dec ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x10]
cmp dword [eax], 0
mov dword [esp + 0x18], ecx
jg 0xb8b9c9
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0xb8b9a0
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0xb8b9a0
push eax
call ecx
mov eax, dword [esp + 0x14]
add esp, 4
mov ecx, dword [eax + 4]
test ecx, ecx
je 0xb8b9bc
cmp ecx, dword [0x100865f8]
je 0xb8b9bc
push ecx
call fcn.00b69ee0
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call fcn.00bb4780
mov ecx, dword [esp + 0x1c]
add esp, 4
mov eax, dword [esp + 0x84]
cmp ecx, dword [edi + eax*4]
jg 0xb8b96c
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 0x18]
mov edx, dword [ebp + 0xc]
add eax, dword [edx + 0x48]
mov dword [esp + 0x14], eax
jmp 0xb870ab
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x9c]
jle 0xb8ba9f
mov ecx, dword [esp + 0x1c]
mov edx, eax
sub edx, dword [esp + 0x9c]
lea ecx, [ecx + eax*4]
sub eax, edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
sub ecx, 4
dec dword [eax]
mov eax, dword [esp + 0x10]
cmp dword [eax], 0
mov dword [esp + 0xac], ecx
jg 0xb8ba8d
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0xb8ba5d
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0xb8ba5d
push eax
call ecx
mov eax, dword [esp + 0x14]
add esp, 4
mov ecx, dword [eax + 4]
test ecx, ecx
je 0xb8ba79
cmp ecx, dword [0x100865f8]
je 0xb8ba79
push ecx
call fcn.00b69ee0
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call fcn.00bb4780
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x70]
add esp, 4
dec edx
mov dword [esp + 0x6c], edx
jne 0xb8ba2a
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x9c]
jge 0xb8badd
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ecx + 0x48]
push eax
mov eax, dword [esp + 0x1c]
sub eax, edx
mov edx, dword [0x1007331c]
push eax
add edx, 0x40
push 0x10083ab4
push edx
call dword [0x10073320]
push 0x10083a6c
call fcn.00ba85a0
add esp, 0x18
mov eax, dword [esp + 0xbc]
lea ecx, [esp + 0x160]
cmp eax, ecx
je 0xb8baf8
push eax
call fcn.00b69ee0
add esp, 4
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x9c]
push eax
push edi
mov dword [esi + 4], edx
call fcn.00b66a10
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret