Function at 0x445a7a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d2410
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
xor esi, esi
cmp edi, ebx
je 0x445d94
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x58], 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 0x445d77
push 1
push 0xd
push 0x10
push 0x10
push dword [ebp + 0xc]
call fcn.004210c3
test eax, eax
je 0x445d77
mov dword [esp + 0x18], ebx
mov byte [esp + 0x58], 1
push dword [edi]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x445d60
mov esi, dword [ebp + 8]
cmp dword [0x52be98], ebx
jne 0x445b34
mov ecx, dword [esi]
mov eax, 0x442a1a
cmp ecx, ebx
je 0x445b2f
push 0x4f0cc4
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52be98], eax
call dword [0x52be98]
test eax, eax
je 0x445ba2
cmp dword [0x52be9c], ebx
jne 0x445b62
mov ecx, dword [esi]
mov eax, 0x442a1a
cmp ecx, ebx
je 0x445b5d
push 0x4f65e0
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52be9c], eax
call dword [0x52be9c]
test eax, eax
je 0x445ba2
cmp dword [0x52be90], ebx
jne 0x445b90
mov ecx, dword [esi]
mov eax, 0x442a1a
cmp ecx, ebx
je 0x445b8b
push 0x4f65b0
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52be90], eax
push 0x4f2e94
push ebx
call dword [0x52be90]
mov dword [esp + 0x14], eax
jmp 0x445ba6
mov dword [esp + 0x14], ebx
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x40]
push eax
lea esi, [esp + 0x20]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0xd0
mov dword [esp + 0x50], 0x10
call fcn.00439b5d
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 0x445c17
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, 0x4ee0a8
push str.unused
push dword [eax]
call fcn.004b4203
pop ecx
pop ecx
test eax, eax
je 0x445cee
cmp dword [esp + 0x14], ebx
je 0x445cd7
mov edi, dword [esi + 0x4ee0ac]
cmp dword [0x52bea0], ebx
jne 0x445c78
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, 0x445a63
cmp ecx, ebx
je 0x445c73
push 0x4f0c0c
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52bea0], eax
push ebx
lea eax, [esp + 0x30]
push eax
push edi
push 3
push dword [esp + 0x28]
push dword [esp + 0x28]
call dword [0x52bea0]
mov esi, dword [esi + 0x4ee0ac]
cmp dword [0x52bea4], ebx
jne 0x445cbc
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, 0x445a63
cmp ecx, ebx
je 0x445cb7
push str.DrawThemeEdge
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52bea4], 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 [0x52bea4]
jmp 0x445cee
push dword [esi + 0x4ee0b0]
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 + 0x4ee0a8]
cmp dword [eax], ebx
jne 0x445c2b
cmp dword [esp + 0x14], ebx
je 0x445d29
push dword [esp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.00445dab
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 0x445d5d
push dword [esp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.00445dab
xor esi, esi
inc esi
mov byte [esp + 0x58], bl
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x445d77
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
or dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x1c], ebx
je 0x445d94
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x445d94
mov dword [esp + 0x1c], ebx
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc