Function at 0x47b6e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552a40
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x48], ebx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
test edi, edi
je 0x47ba1d
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0
push 0x10
push 0xd0
push dword [edi]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
je 0x47b9fb
push 1
push 0xd
push 0x21
push 0x10
push 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
test eax, eax
je 0x47b9fb
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 1
push dword [edi]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x47b78c
xor bl, bl
jmp 0x47b9e3
mov eax, dword [ebx + 4]
test eax, eax
je 0x47b7f4
push 0x584c84
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47b7eb
call eax
test eax, eax
je 0x47b7f4
mov eax, dword [ebx + 4]
test eax, eax
je 0x47b7f4
push 0x589f5c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47b7eb
call eax
test eax, eax
je 0x47b7f4
mov eax, dword [ebx + 4]
test eax, eax
je 0x47b7f4
push 0x589f3c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47b7eb
push 0x58732c
push 0
call eax
mov dword [ebp - 0x38], eax
jmp 0x47b7fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 8], eax
mov dword [ebp - 0x38], 0
mov ebx, dword [ebp - 0x34]
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 0x14]
movaps xmm0, xmmword [0x597560]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_SetBkColor]
mov dword [ebp - 0x54], eax
movups xmmword [ebp - 0x30], xmm0
call ebx
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
je 0x47b849
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push 2
push 0
push 0
push dword [ebp - 0x34]
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
call ebx
push dword [edi]
call dword [sym.imp.GDI32.dll_GetLayout]
movaps xmm0, xmmword [0x597550]
mov ecx, 1
movups xmmword [ebp - 0x20], xmm0
cmp eax, ecx
jne 0x47b879
push 0
push 0xc0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
or ecx, 0xffffffff
mov eax, dword [str.unused]
mov dword [ebp - 0x3c], 0
test eax, eax
je 0x47b992
mov esi, dword [ebp - 0x48]
xor ebx, ebx
shl ecx, 4
mov dword [ebp - 0x50], ecx
nop dword [eax + eax]
mov ecx, str.unused
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47b8cb
test dx, dx
je 0x47b8c7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47b8cb
add eax, 4
add ecx, 4
test dx, dx
jne 0x47b8a5
xor eax, eax
jmp 0x47b8d0
sbb eax, eax
or eax, 1
test eax, eax
je 0x47b96b
cmp dword [ebp - 0x38], 0
je 0x47b956
mov eax, dword [esi + 4]
mov edi, dword [ebx + 0x5d0c2c]
test eax, eax
je 0x47b917
push 0x584c60
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47b90e
push 0
lea ecx, [ebp - 0x20]
push ecx
push edi
push 3
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call eax
jmp 0x47b917
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
mov edi, dword [ebx + 0x5d0c2c]
test eax, eax
je 0x47b96b
push str.DrawThemeEdge
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47b94b
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
push edi
push 3
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call eax
jmp 0x47b96b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 8], eax
jmp 0x47b96b
push dword [ebx + 0x5d0c30]
lea eax, [ebp - 0x20]
push 4
push eax
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x50]
inc edx
add dword [ebp - 0x20], eax
add dword [ebp - 0x18], eax
mov dword [ebp - 0x3c], edx
lea ebx, [edx + edx*2]
shl ebx, 2
mov eax, dword [ebx + 0x5d0c28]
test eax, eax
jne 0x47b8a0
mov esi, dword [ebp - 0x40]
push dword [ebp - 0x54]
push dword [ebp - 0x34]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x44]
push 0xff00ff
push esi
push dword [eax]
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x47b9de
mov edi, dword [ebp - 0x48]
mov eax, dword [edi + 4]
test eax, eax
je 0x47b9de
push 0x589f2c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47b9d5
push ebx
call eax
jmp 0x47b9de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x34]
mov bl, 1
mov byte [ebp - 4], 0
test eax, eax
je 0x47b9fd
push eax
mov dword [ebp - 0x4c], 0
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x47b9fd
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x47ba19
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x40], esi
mov al, bl
jmp 0x47ba1f
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00520c02
mov esp, ebp
pop ebp
ret 0x10