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

Disassembly:
sub esp, 0x238
push ebx
push ebp
push esi
push edi
xor edi, edi
push 3
mov ebp, ecx
push edi
push edi
push edi
mov eax, dword [ebp + 4]
push edi
push 0xfffffffffffffffe
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x104]
push ecx
push edx
call dword [sym.imp.USER32.dll_BeginPaint]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
push ebx
mov dword [esp + 0x14], ebx
call esi
push ebx
mov dword [esp + 0x1c], eax
call esi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x10b831cf
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
jmp 0x10b831e2
lea eax, [esp + 0x10c]
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x14], edi
cmp eax, edi
jle 0x10b83499
mov dword [esp + 0x1c], edi
mov edx, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x1c]
add edx, ebx
lea eax, [esp + 0x34]
push edx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
cmp ebx, eax
jge 0x10b8347a
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
cmp esi, eax
jl 0x10b8347a
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
cmp ecx, eax
jge 0x10b8347a
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
cmp edx, eax
jl 0x10b8347a
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x10b8328c
mov esi, dword [eax + edi*4]
mov eax, dword [ebp + 0x30]
cmp edi, eax
jne 0x10b8325f
or byte [esi + 0x1a], 1
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [ebp + 0x3c]
push eax
push ecx
push esi
push edx
call sym.PBVM90.dll_FN_ToolBarPaintItem
cmp edi, dword [ebp + 0x30]
jne 0x10b8347a
and word [esi + 0x1a], 0xfffe
jmp 0x10b8347a
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x6c]
sub esi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x20]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
mov edi, 1
mov word [esp + 0x6c], 0
mov dword [esp + 0x9c], edi
mov cx, word [ecx + eax*2]
mov dword [esp + 0x74], ebx
mov word [esp + 0x72], cx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x78], ecx
sub edx, ecx
mov ecx, dword [ebp + 0x30]
mov dword [esp + 0x7c], esi
cmp eax, ecx
mov dword [esp + 0x80], edx
jne 0x10b832e9
or word [esp + 0x86], di
mov edx, dword [esp + 0x72]
mov ecx, ebp
and edx, 0xffff
push edx
call fcn.10b835e0
test eax, eax
je 0x10b83307
or byte [esp + 0x86], 2
mov eax, dword [esp + 0x72]
mov edx, dword [ebp + 0x3c]
lea ecx, [esp + 0x6c]
push eax
push ecx
push edx
call sym.PBVM90.dll_FN_ToolItemLoad
mov al, byte [0x10e2beb4]
mov ecx, 9
mov byte [esp + 0x44], al
xor eax, eax
lea edi, [esp + 0x45]
rep stosd dword es:[edi], eax
mov cl, byte [0x10e2beb8]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x144], cl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x145]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ax, word [esp + 0x72]
cmp ax, 0x258
jb 0x10b83369
cmp ax, 0x4e8
ja 0x10b83369
mov eax, dword [ebp + 0x4a]
jmp 0x10b8336c
mov eax, dword [ebp + 0x46]
mov ecx, dword [esp + 0x72]
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x144]
push 0x104
and ecx, 0xffff
push edx
push ecx
push eax
call ebx
mov al, byte [esp + 0x144]
test al, al
je 0x10b83409
call fcn.10bd19f0
test eax, eax
push 0xa
je 0x10b833b3
lea edx, [esp + 0x148]
push edx
call dword [sym.imp.MSVCRT.dll__mbschr]
jmp 0x10b833c1
lea eax, [esp + 0x148]
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x10b83409
call fcn.10bd19f0
test eax, eax
je 0x10b833e5
inc esi
lea ecx, [esp + 0x44]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll__mbscpy]
add esp, 8
jmp 0x10b83409
lea edi, [esi + 1]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0x44]
test al, al
jne 0x10b83440
mov ax, word [esp + 0x72]
cmp ax, 0x258
jb 0x10b83427
cmp ax, 0x4e8
ja 0x10b83427
mov eax, dword [ebp + 0x4a]
jmp 0x10b8342a
mov eax, dword [ebp + 0x46]
mov edx, dword [esp + 0x72]
lea ecx, [esp + 0x44]
and edx, 0xffff
push 0x28
inc edx
push ecx
push edx
push eax
call ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x44]
push ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x14]
push edx
mov edx, dword [ebp + 0x3c]
lea ecx, [esp + 0x74]
push eax
push ecx
push edx
call sym.PBVM90.dll_FN_ToolBarPaintItem
mov eax, dword [esp + 0x8c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x28]
inc edi
add ecx, 0x10
cmp edi, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], ecx
jl 0x10b831f5
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xf
lea edx, [esp + 0x28]
push 4
push edx
push ebx
call sym.PBVM90.dll_osDrawEdge3D
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x104]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x238
ret