Function at 0x44fee9
Capabilities:
Link many functions at runtime

Disassembly:
push 0x48
mov eax, 0x501a84
call fcn.004d2c4d
mov dword [ebp - 0x34], ecx
mov ebx, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x4c], eax
test ebx, ebx
je 0x4501a8
and dword [ebp - 0x44], edi
and dword [ebp - 4], edi
push 0x10
push 0xd0
push dword [ebx]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
mov dword [ebp - 0x44], esi
test esi, esi
je 0x45018f
push 1
push 0xd
push 0x21
push 0x10
push 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], eax
test eax, eax
je 0x45018f
and dword [ebp - 0x40], edi
mov byte [ebp - 4], 1
push dword [ebx]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov dword [ebp - 0x40], ebx
test ebx, ebx
je 0x45017c
mov eax, dword [0x56b92c]
mov edi, dword [ebp - 0x34]
test eax, eax
jne 0x44ff91
cmp dword [edi], 0
mov eax, fcn.004182e0
je 0x44ff8c
push 0x5239f4
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x56b92c], eax
call eax
test eax, eax
je 0x44fff4
mov eax, dword [0x56b930]
test eax, eax
jne 0x44ffbc
cmp dword [edi], 0
mov eax, fcn.004182e0
je 0x44ffb7
push 0x52943c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x56b930], eax
call eax
test eax, eax
je 0x44fff4
mov eax, dword [0x56b934]
test eax, eax
jne 0x44ffe7
cmp dword [edi], 0
mov eax, fcn.004182e0
je 0x44ffe2
push 0x5293e4
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x56b934], eax
push str.BUTTON
push 0
call eax
mov edi, eax
jmp 0x44fff6
xor edi, edi
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 0x14]
movaps xmm0, xmmword [0x536110]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x30]
push eax
movups xmmword [ebp - 0x30], xmm0
call fcn.0040d9d1
mov ecx, dword [ebp - 0x3c]
push dword [ecx]
call dword [sym.imp.GDI32.dll_GetLayout]
movaps xmm0, xmmword [0x536100]
xor ecx, ecx
inc ecx
movups xmmword [ebp - 0x20], xmm0
cmp eax, ecx
jne 0x45004c
push 0
push 0xc0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
or ecx, 0xffffffff
and dword [ebp - 0x3c], 0
mov eax, 0x51e6b0
and dword [ebp - 0x38], 0
mov esi, dword [ebp - 0x34]
shl ecx, 4
mov dword [ebp - 0x50], ecx
push str.unused
push dword [eax]
call fcn.004dc297
pop ecx
pop ecx
test eax, eax
je 0x45011a
mov eax, dword [ebp - 0x38]
test edi, edi
je 0x450107
mov ecx, dword [eax + 0x51e6b4]
mov eax, dword [0x56b928]
mov dword [ebp - 0x48], ecx
test eax, eax
jne 0x4500b4
cmp dword [esi], 0
mov eax, 0x44fe9e
je 0x4500af
push 0x5238f0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x48]
mov dword [0x56b928], eax
push 0
lea edx, [ebp - 0x20]
push edx
push ecx
push 3
push ebx
push edi
call eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x51e6b4]
mov eax, dword [0x56b924]
mov dword [ebp - 0x48], ecx
test eax, eax
jne 0x4500f5
cmp dword [esi], 0
mov eax, 0x44fe9e
je 0x4500f0
push str.DrawThemeEdge
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x48]
mov dword [0x56b924], eax
xor edx, edx
push edx
push edx
push edx
lea edx, [ebp - 0x20]
push edx
push ecx
push 3
push ebx
push edi
call eax
jmp 0x45011a
push dword [eax + 0x51e6b8]
lea eax, [ebp - 0x20]
push 4
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov eax, dword [ebp - 0x50]
add dword [ebp - 0x20], eax
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
imul eax, eax, 0xc
mov dword [ebp - 0x38], eax
lea eax, [eax + 0x51e6b0]
cmp dword [eax], 0
jne 0x450062
mov esi, dword [ebp - 0x44]
test edi, edi
je 0x450151
mov ecx, dword [ebp - 0x34]
push edi
call fcn.004501b2
xor edi, edi
push dword [ebp - 0x54]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x4c]
push 0xff00ff
push esi
push dword [eax]
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
test edi, edi
je 0x450179
mov ecx, dword [ebp - 0x34]
push edi
call fcn.004501b2
xor edi, edi
inc edi
mov byte [ebp - 4], 0
test ebx, ebx
je 0x45018f
and dword [ebp - 0x40], 0
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4501a8
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x44], esi
mov eax, edi
call fcn.004d2bf7
ret 0x10