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

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
mov esi, dword [esp + 0x224]
mov eax, dword [esi + 0xc4]
push edi
mov edi, dword [esp + 0x230]
xor ebx, ebx
and eax, 4
cmp edi, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebx
jge 0xb661e9
mov edi, dword [esp + 0x22c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov dword [esp + 0x230], edi
push esi
call fcn.00bb1740
mov eax, dword [esi + 0x64]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x238]
add esp, 4
test eax, 0x20000
je 0xb6620a
mov dword [esi + 0x64], ebx
mov eax, dword [esi + 0xc4]
mov edx, dword [esp + 0x22c]
movsx ebp, al
and ebp, 1
test al, 8
lea ecx, [esp + 0x1d4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
je 0xb66251
mov eax, dword [esi + 0x1fc]
mov dword [esp + 0x30], 4
mov eax, dword [eax + 0x18]
mov dword [esp + 0x48], eax
inc dword [eax]
jmp 0xb662a6
test al, 2
je 0xb6629c
mov eax, dword [esi + 0xfc]
test eax, eax
mov dword [esp + 0x30], 4
je 0xb66285
push eax
push esi
call fcn.00b9fbf0
add esp, 8
test eax, eax
jne 0xb66294
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x214
ret
push 0xffffffffffffffff
push 0x1008ed20
call fcn.00bb2ed0
add esp, 8
mov dword [esp + 0x48], eax
inc dword [eax]
jmp 0xb662a6
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x1f8]
test eax, eax
jne 0xb662ba
mov dword [esp + 0x34], 1
jmp 0xb662c2
mov ecx, dword [eax + 4]
inc ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x22c]
mov edx, dword [esi + 0x60]
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esi + 0xc4], eax
lea eax, [esp + 0x5c]
push eax
push ebp
push edi
push ecx
push esi
mov dword [esp + 0x54], edx
call fcn.00ba85c0
add esp, 0x14
test eax, eax
jne 0xb665a1
jmp 0xb66306
mov edi, dword [esp + 0x230]
test ebp, ebp
mov dword [esp + 0x2c], 1
je 0xb6632a
mov edx, dword [esp + 0x22c]
mov eax, dword [esp + 0x8c]
add edx, edi
cmp eax, edx
je 0xb665d5
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x240]
push edx
call fcn.00b66870
mov eax, dword [esp + 0x78]
add esp, 0xc
test eax, eax
jle 0xb66527
cmp eax, 0x14
mov ecx, dword [esp + 0x238]
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x28], ecx
jg 0xb66371
lea edx, [esp + 0x1d4]
mov dword [esp + 0x10], edx
jmp 0xb66385
shl eax, 2
push eax
call fcn.00b69da0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
add esp, 4
lea ecx, [eax*4]
push ecx
mov dword [esp + 0x40], eax
call fcn.00b69da0
mov edi, dword [esp + 0x74]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x70]
add esp, 4
xor ebx, ebx
test eax, eax
jle 0xb6644b
jmp 0xb663b5
mov ebp, dword [esp + 0x58]
mov edx, dword [edi + 4]
push edx
lea eax, [esp + 0x2c]
push ebp
push eax
call fcn.00b66870
mov ecx, dword [edi + 4]
push edi
mov dword [esp + 0x68], ecx
call fcn.00b7e9d0
add esp, 0x10
test eax, eax
je 0xb663de
mov eax, dword [esp + 0x28]
jmp 0xb663e1
or eax, 0xffffffff
mov edx, dword [esp + 0x38]
mov dword [edx + ebx*4], eax
cmp dword [esp + 0x30], 4
jne 0xb663f6
or dword [esi + 0xc4], 2
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xc]
push eax
push ecx
lea edx, [edi + 0x10]
push edx
push esi
call fcn.00b65e50
mov ebp, eax
add esp, 0x10
test ebp, ebp
mov dword [esi + 0xc4], 0
jne 0xb665a6
push esi
call fcn.00bb1270
mov ecx, dword [esp + 0x14]
mov dword [ecx + ebx*4], eax
mov edx, dword [eax]
add esp, 4
inc edx
mov dword [eax], edx
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x6c]
inc ebx
inc edx
shl edx, 4
add edi, edx
cmp ebx, eax
jl 0xb663b1
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x50], ecx
lea ecx, [eax + ecx - 1]
cmp edx, ecx
mov dword [esp + 0x54], eax
jne 0xb6646f
dec eax
mov dword [esp + 0x54], eax
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push ebx
push edi
push esi
call fcn.00b66890
mov edx, dword [esi + 0x58]
mov ecx, dword [esp + 0x78]
push 0
inc edx
push ecx
mov dword [esi + 0x58], edx
mov edx, dword [esp + 0x7c]
push edx
push edi
lea eax, [esp + 0x50]
push ebx
push esi
mov dword [esi + 0x1f8], eax
call fcn.00b65880
mov edx, dword [esi + 0x58]
mov ebp, eax
mov eax, dword [esi + 0x1f8]
dec edx
push ebx
mov dword [esi + 0x58], edx
mov ecx, dword [eax + 0x14]
push edi
push esi
mov dword [esi + 0x1f8], ecx
call fcn.00b66910
mov edx, dword [esp + 0x6c]
push edx
call fcn.00b69ee0
xor eax, eax
add esp, 0x38
cmp ebp, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
jne 0xb665e0
cmp ebx, eax
jle 0xb66502
mov eax, dword [edi]
dec dword [eax]
mov eax, dword [edi]
cmp dword [eax], 0
jg 0xb664fc
push eax
call fcn.00ba6fa0
add esp, 4
add edi, 4
dec ebx
jne 0xb664e8
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1d4]
xor ebx, ebx
cmp ecx, eax
je 0xb66527
push ecx
call fcn.00b69ee0
lea edx, [esp + 0x1d8]
add esp, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x1c]
lea edi, [ecx + eax]
mov ecx, dword [esp + 0x14]
push edi
push eax
sub edx, edi
lea eax, [esp + 0x240]
add ecx, edx
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], edi
call fcn.00b66870
lea ecx, [esp + 0x68]
push ecx
call fcn.00ba9090
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x9c]
add esp, 0x10
test ebp, ebp
mov dword [esp + 0x2c], 0
je 0xb6657e
cmp byte [eax], 0x5d
je 0xb665b3
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0xb665cd
lea edx, [esp + 0x5c]
push edx
push ebp
mov eax, ecx
push eax
push edi
push esi
call fcn.00ba85c0
add esp, 0x14
test eax, eax
je 0xb662ff
mov ebp, 1
mov eax, dword [esp + 0x8c]
mov edi, dword [esp + 0x10]
jmp 0xb665e7
sub edi, dword [esp + 0x22c]
mov ecx, dword [esp + 0x20]
dec edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0x64], ecx
jmp 0xb6682a
test ebp, ebp
je 0xb66816
mov edi, dword [esp + 0x10]
mov ebp, 1
jmp 0xb665e7
mov eax, dword [esp + 0x8c]
mov ecx, dword [esi + 0x58]
test ecx, ecx
jne 0xb6662e
cmp ebp, 2
jne 0xb66605
push esi
call fcn.00bb0050
mov ebp, eax
mov eax, dword [esp + 0x90]
add esp, 4
test ebp, ebp
je 0xb6662e
cmp ebp, 1
je 0xb66633
mov ecx, dword [esp + 0x24]
test ecx, ecx
jne 0xb6662e
push ebp
push esi
call fcn.00b66f50
mov eax, dword [esp + 0x94]
add esp, 8
mov ebp, 1
jmp 0xb66633
cmp ebp, 1
jne 0xb66673
test byte [esi + 0x100], 4
jne 0xb66673
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
lea edx, [ecx + edx - 1]
cmp eax, edx
mov dword [esp + 0x24], ecx
lea eax, [ecx - 1]
je 0xb66655
mov eax, ecx
mov ecx, dword [esp + 0x22c]
push eax
mov eax, dword [esp + 0x68]
push eax
push ecx
push esi
call fcn.00b65d50
mov eax, dword [esp + 0x9c]
add esp, 0x10
test ebx, ebx
jle 0xb6669c
mov eax, dword [edi]
dec dword [eax]
mov eax, dword [edi]
cmp dword [eax], 0
jg 0xb6668b
push eax
call fcn.00ba6fa0
add esp, 4
add edi, 4
dec ebx
jne 0xb66677
mov eax, dword [esp + 0x8c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0xb666b8
lea edx, [esp + 0x5c]
push edx
call fcn.00ba9090
mov eax, dword [esp + 0x90]
add esp, 4
lea ecx, [esp + 0x1d4]
cmp edi, ecx
je 0xb666d3
push edi
call fcn.00b69ee0
mov eax, dword [esp + 0x90]
add esp, 4
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x64], edx
mov edx, dword [esp + 0x68]
lea edi, [edx + ecx]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
sub ecx, edi
add edx, ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
mov dword [esp + 0x14], edx
jne 0xb6670f
sub edi, dword [esp + 0x22c]
mov dword [esi + 0xc8], edi
jmp 0xb6682c
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov dword [esp + 0x18], 0
je 0xb6676e
mov ebx, ecx
cmp byte [eax], 0x5d
je 0xb667d6
lea eax, [esp + 0x5c]
push eax
push 1
push ebx
push edi
push 0
call fcn.00ba85c0
add esp, 0x14
test eax, eax
jne 0xb667aa
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
lea eax, [edx + ecx]
sub edi, eax
add ebx, edi
mov edi, eax
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x1c], ecx
call fcn.00ba9090
mov eax, dword [esp + 0x90]
add esp, 4
test ebx, ebx
jne 0xb66721
mov ecx, dword [esp + 0x22c]
mov edx, dword [esp + 0x230]
add edx, ecx
cmp eax, edx
jne 0xb667eb
sub eax, ecx
push 0xffffffffffffffff
push 0x1007ef94
mov dword [esi + 0xc8], eax
call fcn.00bb2ed0
push eax
push esi
call fcn.00bb11e0
add esp, 0x10
mov ebp, 1
jmp 0xb6682c
mov eax, dword [esp + 0x18]
test eax, eax
jne 0xb667c6
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x22c]
dec ecx
mov dword [esi + 0xc8], ecx
jmp 0xb6682c
sub eax, dword [esp + 0x22c]
dec eax
mov dword [esi + 0xc8], eax
jmp 0xb6682c
test ebx, ebx
je 0xb6676e
mov ecx, dword [esp + 0x22c]
sub eax, ecx
mov dword [esi + 0xc8], eax
jmp 0xb6682c
cmp byte [eax], 0x5d
je 0xb667e1
sub eax, ecx
inc eax
push 0xffffffffffffffff
push 0x1007ef94
mov dword [esi + 0xc8], eax
call fcn.00bb2ed0
push eax
push esi
call fcn.00bb11e0
add esp, 0x10
mov ebp, 1
jmp 0xb6682c
sub edi, dword [esp + 0x22c]
mov eax, dword [esp + 0x20]
mov dword [esi + 0xc8], edi
mov dword [esi + 0x64], eax
xor ebp, ebp
mov eax, dword [esp + 0x38]
test eax, eax
je 0xb6683d
push eax
call fcn.00b69ee0
add esp, 4
cmp dword [esp + 0x30], 4
jne 0xb6685c
mov eax, dword [esp + 0x48]
dec dword [eax]
mov eax, dword [esp + 0x48]
cmp dword [eax], 0
jg 0xb6685c
push eax
call fcn.00ba6fa0
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x214
ret