Function at 0x452879
Capabilities:
Link many functions at runtime

Disassembly:
push 0x48
mov eax, 0x50269f
call fcn.004cea37
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 0x452b45
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 0x452b2c
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 0x452b2c
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 0x452b19
mov eax, dword [0x5737c8]
mov edi, dword [ebp - 0x34]
test eax, eax
jne 0x452921
cmp dword [edi], 0
mov eax, fcn.0041a7e0
je 0x45291c
push 0x52992c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5737c8], eax
call eax
test eax, eax
je 0x452984
mov eax, dword [0x5737c0]
test eax, eax
jne 0x45294c
cmp dword [edi], 0
mov eax, fcn.0041a7e0
je 0x452947
push 0x52f550
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5737c0], eax
call eax
test eax, eax
je 0x452984
mov eax, dword [0x5737cc]
test eax, eax
jne 0x452977
cmp dword [edi], 0
mov eax, fcn.0041a7e0
je 0x452972
push 0x52f4f8
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5737cc], eax
push str.BUTTON
push 0
call eax
mov edi, eax
jmp 0x452986
xor edi, edi
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 0x14]
movaps xmm0, xmmword [0x53c770]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x30]
push eax
movups xmmword [ebp - 0x30], xmm0
call fcn.0040b798
mov ecx, dword [ebp - 0x3c]
push dword [ecx]
call dword [sym.imp.GDI32.dll_GetLayout]
movaps xmm0, xmmword [0x53c760]
xor ecx, ecx
inc ecx
movups xmmword [ebp - 0x20], xmm0
cmp eax, ecx
jne 0x4529dc
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
cmp dword [str.unused], 0
je 0x452adf
and dword [ebp - 0x38], 0
mov eax, 0x56db90
mov esi, dword [ebp - 0x34]
shl ecx, 4
mov dword [ebp - 0x50], ecx
push str.unused
push dword [eax]
call fcn.004d7f22
pop ecx
pop ecx
test eax, eax
je 0x452ab7
mov eax, dword [ebp - 0x38]
test edi, edi
je 0x452aa4
mov ecx, dword [eax + 0x56db94]
mov eax, dword [0x5737b8]
mov dword [ebp - 0x48], ecx
test eax, eax
jne 0x452a51
cmp dword [esi], 0
mov eax, 0x45282e
je 0x452a4c
push 0x5298a0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x48]
mov dword [0x5737b8], 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 + 0x56db94]
mov eax, dword [0x5737bc]
mov dword [ebp - 0x48], ecx
test eax, eax
jne 0x452a92
cmp dword [esi], 0
mov eax, 0x45282e
je 0x452a8d
push str.DrawThemeEdge
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x48]
mov dword [0x5737bc], 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 0x452ab7
push dword [eax + 0x56db98]
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 + 0x56db90]
cmp dword [eax], 0
jne 0x4529ff
mov esi, dword [ebp - 0x44]
test edi, edi
je 0x452aee
mov ecx, dword [ebp - 0x34]
push edi
call fcn.00452b4f
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 0x452b16
mov ecx, dword [ebp - 0x34]
push edi
call fcn.00452b4f
xor edi, edi
inc edi
mov byte [ebp - 4], 0
test ebx, ebx
je 0x452b2c
and dword [ebp - 0x40], 0
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x452b45
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.004ce9e1
ret 0x10