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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x100e4
call fcn.00bb2c50
mov eax, dword [0xc43578]
push ebx
push esi
inc eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [0xc43578], eax
push edi
cmp eax, 0x30
jge 0xbc78b0
xor ebx, ebx
mov byte [esp + 0x13], 1
mov eax, ebx
mov byte [esp + 0x1e], 1
push 0x10000
mov dword [esp + 0x18], eax
mov byte [esp + 0x24], bl
mov dword [esp + 0x64], ebx
call fcn.00b9125b
pop ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x64], eax
call fcn.00b82cbe
lea ecx, [esp + 0x78]
call fcn.00b8018f
lea ecx, [esp + 0x60]
call fcn.00b82cbe
lea ecx, [esp + 0x60]
call fcn.00b82cbe
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x60]
mov eax, 0x8000
push eax
push edi
mov dword [esp + 0x90], eax
call fcn.00b82ce8
test al, al
je 0xbc7cd9
lea ecx, [esp + 0x60]
call fcn.00b82aa0
lea ecx, [esp + 0x60]
call fcn.00b829b6
lea ecx, [esp + 0x60]
call fcn.00b8254b
test byte [esp + 0x88], 3
jne 0xbc78ca
lea ecx, [esp + 0xc0]
call fcn.00b8018f
lea eax, [esp + 0xf0]
push eax
push 0x7fff
call dword [0xc0d324]
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0xc4]
call fcn.00b8062c
lea ecx, [esp + 0xb0]
call fcn.00b8018f
lea edx, [esp + 0xb0]
mov ecx, edi
call fcn.00b71f9f
mov edi, dword [esp + 0x70]
lea eax, [esp + 0x58]
mov esi, dword [esp + 0x74]
lea ecx, [esp + 0x60]
push eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x5c], 0x18
push eax
call fcn.00b82562
push ebx
push esi
push edi
lea ecx, [esp + 0x6c]
call fcn.00b82af6
cmp dword [esp + 0xa8], 0x21335541
je 0xbc792b
lea ecx, [esp + 0x38]
call fcn.00b8018f
lea ecx, [esp + 0x28]
call fcn.00b8018f
push ebx
lea eax, [esp + 0x2c]
push ebx
push eax
lea edx, [esp + 0x44]
lea ecx, [esp + 0xbc]
call fcn.00b71fef
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
push eax
call fcn.00b8058e
push dword [esp + 0x38]
call dword [0xc0d3f4]
lea ecx, [esp + 0x28]
call fcn.00b80a62
lea ecx, [esp + 0x38]
call fcn.00b80a62
push 0x2000
call fcn.00b9125b
pop ecx
push eax
lea ecx, [esp + 0x5c]
call fcn.00b83372
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x1e], 1
jne 0xb81860
push ecx
push esi
lea ecx, [esp + 0x68]
call fcn.00b8257f
test al, al
je 0xb81860
mov eax, dword [esp + 0x14]
inc eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call fcn.00b81b1c
push esi
call fcn.00b81a7c
push esi
test al, al
je 0xbc7cbc
call fcn.00b81b69
push esi
mov byte [esp + 0x23], bl
call fcn.00b9568e
mov dword [esp + 0x28], eax
pop ecx
cmp eax, 2
jle 0xb817be
mov ax, word [esi + eax*2 - 4]
push 0x7f
pop ecx
and ax, cx
movzx eax, ax
push eax
call fcn.00b970f0
pop ecx
test eax, eax
jne 0xb818e2
cmp byte [esp + 0x20], 1
je 0xbc7c9d
push dword [esp + 0xb0]
lea ecx, [esp + 0x3c]
call fcn.00b8083b
lea eax, [esp + 0x60]
mov ecx, edi
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
push eax
push esi
call fcn.00b813db
mov ecx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], ecx
dec dword [eax]
mov eax, dword [esp + 0x44]
cmp dword [eax], ebx
jne 0xb8181f
push dword [esp + 0x38]
call fcn.00b91264
pop ecx
push 4
push dword [esp + 0x48]
call fcn.00b9121d
pop ecx
pop ecx
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0xb818f7
cmp ecx, 1
jle 0xb818fb
cmp ecx, 3
jg 0xbc7caa
push dword [ebp + 0xc]
mov eax, dword [esp + 0x1c]
mov ecx, edi
push esi
push eax
mov dword [esp + 0x20], eax
call fcn.00b81e3e
cmp byte [esp + 0x13], 1
mov al, byte [esp + 0x1f]
mov byte [esp + 0x20], al
je 0xb81748
lea ecx, [esp + 0x60]
call fcn.00b82cbe
push dword [esp + 0xc0]
call dword [0xc0d3f4]
mov eax, dword [esp + 0x5c]
mov bl, byte [esp + 0x13]
sub dword [eax], 1
jne 0xb81894
push 4
push eax
call fcn.00b9121d
push esi
call fcn.00b91264
add esp, 0xc
lea ecx, [esp + 0xb0]
call fcn.00b80a62
lea ecx, [esp + 0xc0]
call fcn.00b80a62
lea ecx, [esp + 0x60]
call fcn.00b82cbe
lea ecx, [esp + 0x78]
call fcn.00b80a62
lea ecx, [esp + 0x60]
call fcn.00b82cbe
push dword [esp + 0x64]
call fcn.00b91264
pop ecx
dec dword [0xc43578]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esp + 0x24]
cmp word [esi + eax*2 - 2], 0x5f
jne 0xb817be
jmp 0xbc7c8c
mov byte [esp + 0x13], bl
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jmp 0xb8184d
push dword [ebp + 0x14]
push 0xc373b8
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.00bdb46b
xor bl, bl
jmp 0xb818d1
test byte [esp + 0x88], 1
je 0xbc78e2
mov eax, dword [esp + 0x70]
or eax, dword [esp + 0x74]
jne 0xb81645
cmp dword [esp + 0x8c], 3
jne 0xbc78f5
push 3
push 0xc331dc
jmp 0xbc791d
cmp dword [esp + 0x8c], 5
jne 0xbc7908
push 2
push 0xc331e4
jmp 0xbc791d
cmp dword [esp + 0x8c], 7
jne 0xb81645
push 2
push 0xc331e0
lea ecx, [esp + 0x68]
call fcn.00bde8ab
jmp 0xb81645
cmp dword [esp + 0xac], 0x36304145
jne 0xb816d5
lea ecx, [esp + 0x60]
call fcn.00b82cbe
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x98]
push 2
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
push dword [eax]
mov byte [esp + 0xb4], bl
call fcn.00b835ca
test eax, eax
jne 0xbc7c70
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0xa4]
call fcn.00be4861
lea ecx, [esp + 0x98]
mov esi, eax
call fcn.00b8363a
test esi, esi
jne 0xbc7c70
mov eax, dword [esp + 0x14]
push 4
pop esi
push 0x10
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
or eax, 0xffffffff
mov word [esp + 0x34], ax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.00b9122b
mov edi, eax
or eax, 0xffffffff
pop ecx
push 5
lea ecx, [esp + 0x2c]
mov dword [esp + 0x58], edi
mov dword [edi], 0xc0d948
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x36], ax
call fcn.00b822ba
mov eax, dword [esp + 0x48]
mov ecx, edi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
call fcn.00b82123
mov edi, dword [esp + 0x18]
xor eax, eax
inc eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x48], eax
jl 0xbc7bdd
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
add eax, esi
inc esi
mov dword [esp + 0x18], esi
movzx eax, byte [eax]
push eax
mov dword [esp + 0x5c], eax
call fcn.00b822ba
push 0xf
pop edx
cmp word [esp + 0x30], dx
ja 0xbc7a5e
mov eax, dword [esp + 0x14]
add eax, esi
add esi, 4
mov eax, dword [eax]
mov dword [esp + 0x28], eax
jmp 0xbc7b6f
mov ecx, dword [esp + 0x30]
lea eax, [ecx - 0x10]
cmp ax, dx
ja 0xbc7a85
mov ecx, dword [esp + 0x14]
add ecx, esi
add esi, 8
mov eax, dword [ecx]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x2c], eax
jmp 0xbc7b6f
lea eax, [ecx - 0x20]
cmp ax, dx
ja 0xbc7aa1
mov eax, dword [esp + 0x14]
add eax, esi
add esi, 8
fld qword [eax]
fstp qword [esp + 0x28]
jmp 0xbc7b6f
lea eax, [ecx - 0x30]
cmp ax, dx
ja 0xbc7b6f
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call fcn.00bdb24c
mov esi, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], esi
push esi
cmp eax, 0x31
jne 0xbc7af8
lea ecx, [esp + 0xd4]
call fcn.00b8083b
mov ecx, dword [edi + 4]
push dword [esp + 0xd0]
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [esp + 0xd0]
mov esi, eax
call fcn.00b80a62
push 1
jmp 0xbc7b24
cmp eax, 0x30
jne 0xbc7b37
lea ecx, [esp + 0xe4]
call fcn.00b8083b
lea ecx, [esp + 0xe0]
call fcn.00b8d743
lea ecx, [esp + 0xe0]
mov esi, eax
call fcn.00b80a62
push ebx
lea ecx, [esp + 0x2c]
call fcn.00b822ba
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x20]
jmp 0xbc7b64
cmp eax, 0x37
jne 0xbc7b5b
mov ecx, edi
call fcn.00bdb16d
test eax, eax
je 0xbc7c45
push esi
call fcn.00b91264
mov esi, dword [esp + 0x1c]
pop ecx
jmp 0xbc7a24
lea ecx, [esp + 0x2c]
call fcn.00be2748
push esi
call fcn.00b91264
mov esi, dword [esp + 0x1c]
pop ecx
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x28]
push eax
call fcn.00b82123
cmp dword [esp + 0x58], 0x7f
jne 0xbc7a24
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + 8]
cmp edx, 2
jbe 0xbc7bc5
mov eax, dword [ecx + 4]
push 0x7f
mov eax, dword [eax + edx*4 - 8]
pop edx
cmp word [eax + 8], dx
je 0xbc7bc5
inc dword [esp + 0x50]
mov ecx, edi
push 0x3b
pop eax
mov word [esp + 0x20], ax
or eax, 0xffffffff
push eax
lea eax, [esp + 0x24]
push eax
push dword [edi + 0x10]
call fcn.00b81e3e
jmp 0xbc7bca
call fcn.00bdb7d1
mov eax, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x4c], eax
cmp eax, dword [esp + 0x48]
jle 0xbc7a24
push 5
lea ecx, [esp + 0x2c]
call fcn.00b822ba
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
call fcn.00be26a7
lea eax, [esp + 0x24]
push eax
lea ecx, [edi + 0x50]
call fcn.00beb64d
push dword [esp + 0x14]
call fcn.00b956a9
mov bl, 1
pop ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0xc0d948
call fcn.00b82090
push dword [esp + 0x3c]
call fcn.00b91264
pop ecx
lea ecx, [esp + 0x28]
call fcn.00bd13a4
jmp 0xb81894
mov eax, dword [esp + 0x4c]
mov ecx, edi
push 0xc0d938
push 0xc37498
push eax
push dword [ebp + 8]
call fcn.00bdb46b
push esi
call fcn.00b91264
pop ecx
push dword [esp + 0x14]
call fcn.00b956a9
jmp 0xbc7c1b
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x1c]
push 0xc37440
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.00bdb46b
jmp 0xb81894
xor ecx, ecx
mov byte [esp + 0x1f], 1
mov word [esi + eax*2 - 2], cx
jmp 0xb817be
push esi
mov ecx, edi
call fcn.00bdb106
jmp 0xb8184d
cmp ecx, 4
jne 0xb818fb
mov byte [esp + 0x1e], bl
jmp 0xb818fb
mov eax, dword [esp + 0x18]
mov ecx, edi
push 0xc374d0
push eax
push dword [ebp + 0x10]
call fcn.00bdb46b
mov byte [esp + 0x13], bl
jmp 0xb81860
push dword [ebp + 0x14]
mov ecx, esi
push 0xc37440
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.00bdb46b
jmp 0xb818ac