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

Disassembly:
sub esp, 0x70
push esi
mov esi, dword [esp + 0x78]
push edi
push esi
call fcn.10bfa260
xor edi, edi
add esp, 4
cmp eax, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
je 0x10bf9491
mov ecx, dword [esp + 0x80]
push ebp
mov ebp, dword [esi + 4]
lea eax, [esp + 0x10]
push ebx
push eax
push 9
push ecx
push ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x30], 0xffffffff
call sym.PBVM90.dll_ob_get_array_field
mov ecx, dword [esi + 0x10]
mov ebx, eax
mov edx, dword [esp + 0x14]
push edi
lea eax, [edx*4]
push eax
push ecx
call sym.PBVM90.dll_pbstg_alc
mov edi, eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], edi
test ecx, ecx
jbe 0x10bf9240
lea edx, [esp + 0x12]
lea esi, [eax + 1]
push edx
push esi
push ebx
push ebp
call sym.PBVM90.dll_ob_array_index
mov dword [edi], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
add edi, 4
cmp eax, ecx
jb 0x10bf9216
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x88]
push eax
push ebp
call sym.PBVM90.dll_ob_get_obinst_class_hndl
push eax
push ebp
call sym.PBVM90.dll_ob_is_class_inherited
test eax, eax
mov dword [esp + 0x38], eax
je 0x10bf9272
mov ecx, dword [esp + 0x14]
push ecx
push edi
push ebp
call fcn.10bfa3d0
add esp, 0xc
mov dword [esp + 0x18], eax
mov edi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], 0
test eax, eax
jbe 0x10bf9481
mov dword [esp + 0x28], edi
jmp 0x10bf9297
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x84]
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 0x10]
push 0
push 0x48
mov eax, dword [edx]
push ecx
mov ebx, dword [eax]
mov dword [esp + 0x48], ebx
call sym.PBVM90.dll_pbstg_alc
mov esi, eax
mov ecx, 0x12
xor eax, eax
mov edi, esi
push esi
push ebx
rep stosd dword es:[edi], eax
push ebp
call sym.PBVM90.dll_FN_FieldGetMN
test byte [esi + 0x36], 0x10
je 0x10bf9310
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x40]
mov dword [esp + 0x40], esi
push edx
push eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], esi
call fcn.10bf9f80
add esp, 8
xor ecx, ecx
mov ebp, eax
mov dword [esp + 0x88], ecx
jmp 0x10bf9326
mov ecx, dword [0x10e2d284]
xor ebp, ebp
inc word [0x10e2d284]
mov dword [esp + 0x88], ecx
mov eax, dword [esi + 0x2e]
mov bx, word [esi + 0x36]
mov edx, dword [esi + 0x2a]
test eax, eax
je 0x10bf93c5
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
mov eax, ebx
mov dword [esp + 0x54], 0x2c
and eax, 0xffff
mov dword [esp + 0x78], edx
mov ecx, eax
and eax, 0x6b64
and ecx, 0x108b
mov dword [esp + 0x5c], eax
test bl, 0x10
mov dword [esp + 0x60], ecx
je 0x10bf9380
mov dword [esp + 0x58], 0x35
mov dword [esp + 0x68], ebp
jmp 0x10bf9399
mov edx, dword [esp + 0x88]
mov dword [esp + 0x58], 0x33
and edx, 0xffff
mov dword [esp + 0x64], edx
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x54]
push eax
push 1
push edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push eax
push edi
call dword [sym.imp.USER32.dll_InsertMenuItemA]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x88]
inc eax
mov dword [esp + 0x20], eax
jmp 0x10bf93c9
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x10bf9445
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x10bf93e0
mov dword [esp + 0x24], esi
mov edx, dword [esp + 0x3c]
mov dword [esi], eax
mov eax, dword [esi + 0x2e]
mov dword [esi + 0x44], edx
test eax, eax
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebp
je 0x10bf93ff
mov eax, dword [esp + 0x20]
jmp 0x10bf9402
or eax, 0xffffffff
test bl, 0x10
mov dword [esi + 0x12], eax
jne 0x10bf9412
and ecx, 0xffff
mov eax, ecx
mov word [esi + 0x10], ax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x22], eax
mov eax, dword [esp + 0x2c]
test eax, eax
mov dword [esi + 0x16], 1
je 0x10bf942e
mov dword [eax], esi
mov edx, dword [esp + 0x84]
lea ecx, [esi + 0x26]
push esi
push edx
mov dword [esp + 0x34], ecx
call fcn.10c3d160
jmp 0x10bf9453
mov eax, dword [esp + 0x84]
push esi
push eax
call fcn.10bf9b30
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
add esp, 8
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edx
jb 0x10bf928c
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x10]
push edi
push ecx
call sym.PBVM90.dll_pbstg_fee
pop ebx
pop ebp
mov eax, dword [esp + 0x14]
pop edi
pop esi
add esp, 0x70
ret 0xc