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

Disassembly:
push 0xffffffffffffffff
push 0x101e0496
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
cmp dword [esp + 0x98], 0
je 0x101bb740
mov ebx, 1
test byte [0x102ab838], bl
jne 0x101bb2c3
or dword [0x102ab838], ebx
mov dword [esp + 0x90], 0
call fcn.101bb8f0
push 0x1022d050
call fcn.101d1b9e
add esp, 4
mov dword [esp + 0x90], 0xffffffff
test byte [0x102ab838], 2
jne 0x101bb308
or dword [0x102ab838], 2
mov dword [esp + 0x90], ebx
push 0x18
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
push eax
mov dword [0x102ab834], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x1022d020
call fcn.101d1b9e
add esp, 4
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [0x102ab834]
test eax, eax
mov dword [esp + 0x18], 0x102ab834
je 0x101bb320
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x90], 2
lea edi, [esp + 0x98]
lea ebx, [esp + 0x28]
call fcn.101bb9f0
mov ebx, dword [esp + 0x28]
mov ebp, dword [0x102aa1dc]
xor edi, edi
cmp ebx, edi
je 0x101bb353
cmp ebx, 0x102aa1d8
je 0x101bb359
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x2c]
cmp esi, ebp
je 0x101bb3a2
cmp ebx, edi
jne 0x101bb36b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [ebx + 4]
jne 0x101bb376
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp byte [esi + 0x10], 0
je 0x101bb3a2
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [0x102ab834]
cmp eax, edi
je 0x101bb397
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x18], edi
mov al, 1
jmp 0x101bb742
or esi, 0xffffffff
mov dword [esp + 0x90], esi
mov eax, dword [0x102ab834]
cmp eax, edi
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
je 0x101bb3be
push eax
call ebp
mov ecx, dword [esp + 0x98]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], edi
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
jne 0x101bb441
mov eax, dword [0x102ab834]
cmp eax, edi
mov dword [esp + 0x1c], 0x102ab834
je 0x101bb407
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x90], 3
lea ebx, [esp + 0x98]
call fcn.101bb960
mov byte [eax], 0
mov dword [esp + 0x90], esi
mov eax, dword [0x102ab834]
test eax, eax
je 0x101bb434
push eax
call ebp
mov dword [esp + 0x1c], 0
jmp 0x101bb740
mov ecx, dword [esp + 0x40]
cmp ecx, edi
mov byte [esp + 0x17], 0
je 0x101bb694
lea edx, [esp + 0x44]
xor eax, eax
push edx
push 0x18
push ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x101bb685
push 0x2c
lea eax, [esp + 0x60]
push edi
push eax
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
add esp, 0xc
push edi
lea eax, [esp + 0x2c]
neg edx
push eax
mov dword [esp + 0x64], 0x28
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov word [esp + 0x70], 1
mov word [esp + 0x72], 0x20
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
call fcn.100131b0
mov dword [esp + 0x90], 4
mov eax, dword [esp + 0x28]
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
push edi
lea edx, [esp + 0x6c]
push edx
push eax
mov dword [esp + 0x30], edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [esp + 0x28]
mov ebx, eax
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp ebx, edi
mov ebp, eax
je 0x101bb649
cmp ebp, edi
je 0x101bb654
cmp dword [esp + 0x18], edi
je 0x101bb649
push ebx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [esp + 0x48]
imul esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
lea ebx, [esi*4]
push ebx
push edi
push edx
mov dword [esp + 0x2c], eax
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0xa4]
add esp, 0xc
push 1
push edi
push edi
push eax
push ecx
push edx
push edi
push edi
push ebp
call dword [sym.imp.USER32.dll_DrawIconEx]
push esi
call fcn.101d19a9
mov edi, dword [esp + 0x1c]
mov ecx, eax
add esp, 4
xor eax, eax
test esi, esi
mov dword [esp + 0x1c], ecx
jbe 0x101bb5ae
cmp dword [edi + eax*4], 0
sete dl
mov byte [eax + ecx], dl
add eax, 1
cmp eax, esi
jb 0x101bb59d
mov eax, dword [esp + 0x18]
push ebx
push 0
push eax
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0xa4]
add esp, 0xc
push 3
push 0
push 0
push ecx
push edx
push eax
push 0
push 0
push ebp
call dword [sym.imp.USER32.dll_DrawIconEx]
add ebx, edi
cmp edi, ebx
je 0x101bb5f6
test dword [edi], 0xff000000
jne 0x101bb612
add edi, 4
cmp edi, ebx
jne 0x101bb5e7
mov ecx, dword [esp + 0x18]
xor eax, eax
test esi, esi
jbe 0x101bb627
mov edx, dword [esp + 0x1c]
cmp byte [eax + edx], 0
je 0x101bb619
or dword [ecx], 0xff000000
jmp 0x101bb61d
mov byte [esp + 0x17], 1
jmp 0x101bb627
mov byte [ecx + 3], 0
add eax, 1
add ecx, 4
cmp eax, esi
jb 0x101bb600
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x24]
add esp, 4
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [esp + 0x24]
xor edi, edi
or esi, 0xffffffff
cmp ebp, edi
je 0x101bb654
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp ebx, edi
je 0x101bb66e
mov eax, dword [esp + 0x9c]
cmp eax, edi
je 0x101bb667
mov dword [eax], ebx
jmp 0x101bb66e
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x90], esi
lea edx, [esp + 0x28]
push edx
call fcn.10013210
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x101bb694
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x101bb6a3
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
call fcn.101a7500
test al, al
mov eax, dword [0x102ab834]
mov dword [esp + 0x24], 0x102ab834
je 0x101bb700
cmp eax, edi
je 0x101bb6c4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x90], 5
lea ebx, [esp + 0x98]
call fcn.101bb960
mov bl, byte [esp + 0x17]
mov byte [eax], bl
mov dword [esp + 0x90], esi
mov eax, dword [0x102ab834]
test eax, eax
je 0x101bb6f4
push eax
call ebp
mov dword [esp + 0x24], 0
mov al, bl
jmp 0x101bb742
cmp eax, edi
je 0x101bb70b
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x90], 6
lea ebx, [esp + 0x98]
call fcn.101bb960
mov byte [eax], 0
mov dword [esp + 0x90], esi
mov eax, dword [0x102ab834]
test eax, eax
je 0x101bb738
push eax
call ebp
mov dword [esp + 0x24], 0
xor al, al
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret