Function at 0x442caf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ce11e
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x51f714]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
xor esi, esi
cmp edi, ebx
je 0x442fac
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x48], ebx
mov eax, dword [edi]
push 0x10
push 0xd0
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x442f8f
push 1
push 0xd
push 0x10
push 0x10
push dword [ebp + 0xc]
call fcn.0041ffcc
test eax, eax
je 0x442f8f
mov dword [esp + 0x18], ebx
mov byte [esp + 0x48], 1
push dword [edi]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x442f78
mov esi, dword [ebp + 8]
cmp dword [0x526e18], ebx
jne 0x442d69
mov ecx, dword [esi]
mov eax, 0x442c95
cmp ecx, ebx
je 0x442d64
push 0x4ecb30
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x526e18], eax
call dword [0x526e18]
test eax, eax
je 0x442dd7
cmp dword [0x526e1c], ebx
jne 0x442d97
mov ecx, dword [esi]
mov eax, 0x442c95
cmp ecx, ebx
je 0x442d92
push 0x4f2248
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x526e1c], eax
call dword [0x526e1c]
test eax, eax
je 0x442dd7
cmp dword [0x526e10], ebx
jne 0x442dc5
mov ecx, dword [esi]
mov eax, 0x442c95
cmp ecx, ebx
je 0x442dc0
push 0x4f2218
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x526e10], eax
push 0x4eebc0
push ebx
call dword [0x526e10]
mov dword [esp + 0x14], eax
jmp 0x442ddb
mov dword [esp + 0x14], ebx
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 0x10]
lea esi, [esp + 0x1c]
mov dword [esp + 0x2c], eax
call fcn.00442fea
push dword [edi]
call dword [sym.imp.GDI32.dll_GetLayout]
push 0xf
pop ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
xor ecx, ecx
inc ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
cmp eax, ecx
jne 0x442e2f
push ebx
push 0xc0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
or ecx, 0xffffffff
mov dword [esp + 0x20], ecx
xor esi, esi
shl dword [esp + 0x20], 4
mov dword [esp + 0x24], ebx
mov eax, 0x4e9f40
push str.unused
push dword [eax]
call fcn.004afe33
pop ecx
pop ecx
test eax, eax
je 0x442f06
cmp dword [esp + 0x14], ebx
je 0x442eef
mov edi, dword [esi + 0x4e9f44]
cmp dword [0x526e20], ebx
jne 0x442e90
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, 0x442c98
cmp ecx, ebx
je 0x442e8b
push 0x4eca78
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x526e20], eax
push ebx
lea eax, [esp + 0x30]
push eax
push edi
push 3
push dword [esp + 0x28]
push dword [esp + 0x28]
call dword [0x526e20]
mov esi, dword [esi + 0x4e9f44]
cmp dword [0x526e24], ebx
jne 0x442ed4
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, 0x442c98
cmp ecx, ebx
je 0x442ecf
push str.DrawThemeEdge
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x526e24], eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x38]
push eax
push esi
push 3
push dword [esp + 0x30]
push dword [esp + 0x30]
call dword [0x526e24]
jmp 0x442f06
push dword [esi + 0x4e9f48]
lea eax, [esp + 0x30]
push 4
push eax
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov eax, dword [esp + 0x20]
add dword [esp + 0x2c], eax
add dword [esp + 0x34], eax
inc dword [esp + 0x24]
mov esi, dword [esp + 0x24]
imul esi, esi, 0xc
lea eax, [esi + 0x4e9f40]
cmp dword [eax], ebx
jne 0x442e43
cmp dword [esp + 0x14], ebx
je 0x442f41
push dword [esp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.00442fc3
mov dword [esp + 0x14], ebx
push dword [esp + 0x28]
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp + 0xc]
push 0xff00ff
push dword [esp + 0x20]
push dword [eax]
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
cmp dword [esp + 0x14], ebx
je 0x442f75
push dword [esp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.00442fc3
xor esi, esi
inc esi
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x442f8f
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
or dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x1c], ebx
je 0x442fac
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x442fac
mov dword [esp + 0x1c], ebx
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc