Function at 0x4e7370
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e8bd5
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x69001c]
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 dword [ebp - 0x38], ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
test ebx, ebx
je 0x4e76d5
mov edi, dword [ebp + 0x10]
test edi, edi
jle 0x4e76d5
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0
imul eax, edi, 0xd
push edi
push eax
push dword [ebx]
mov dword [ebp - 0x40], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
mov dword [ebp - 0x44], esi
test esi, esi
je 0x4e76b3
push 1
push 0xd
push 0x21
push edi
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
test eax, eax
je 0x4e76b3
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 1
push dword [ebx]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4e7424
xor bl, bl
jmp 0x4e769b
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
test eax, eax
je 0x4e7498
push 0x6257cc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4e748c
call eax
test eax, eax
je 0x4e7498
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
test eax, eax
je 0x4e7498
push 0x62a634
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4e748c
call eax
test eax, eax
je 0x4e7498
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
test eax, eax
je 0x4e7498
push 0x62a650
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4e748c
push 0x627aa4
push 0
call eax
mov dword [ebp - 0x3c], eax
jmp 0x4e749f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 8], eax
mov dword [ebp - 0x3c], 0
push esi
push dword [ebp - 0x34]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x40]
push dword [ebp - 0x34]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov dword [ebp - 0x40], eax
cmp eax, 0xffffffff
je 0x4e74fc
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 - 0x40]
push dword [ebp - 0x34]
call dword [sym.imp.GDI32.dll_SetBkColor]
push dword [ebx]
call dword [sym.imp.GDI32.dll_GetLayout]
lea ecx, [edi - 1]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov ecx, 1
mov dword [ebp - 0x1c], 0
cmp eax, ecx
jne 0x4e753a
push 0
lea eax, [edi + edi*2]
shl eax, 2
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
or ecx, 0xffffffff
mov eax, dword [str.unused]
xor ebx, ebx
mov esi, dword [ebp - 0x38]
imul ecx, edi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x50], ecx
mov ecx, str.unused
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4e757c
test dx, dx
je 0x4e7578
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4e757c
add eax, 4
add ecx, 4
test dx, dx
jne 0x4e7556
xor eax, eax
jmp 0x4e7581
sbb eax, eax
or eax, 1
test eax, eax
je 0x4e760a
cmp dword [ebp - 0x3c], 0
je 0x4e7675
mov eax, dword [esi + 4]
mov edi, dword [ebx + 0x6179bc]
test eax, eax
je 0x4e75cc
push 0x6257a4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4e75c3
push 0
lea ecx, [ebp - 0x20]
push ecx
push edi
push 3
push dword [ebp - 0x34]
push dword [ebp - 0x3c]
call eax
jmp 0x4e75cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
mov edi, dword [ebx + 0x6179bc]
test eax, eax
je 0x4e760a
push str.DrawThemeEdge
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4e7601
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
push edi
mov edi, dword [ebp - 0x34]
push 3
push edi
push dword [ebp - 0x3c]
call eax
jmp 0x4e760d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 8], eax
mov edi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x50]
inc edx
add dword [ebp - 0x20], eax
add dword [ebp - 0x18], eax
mov dword [ebp - 0x40], edx
lea ebx, [edx + edx*2]
shl ebx, 2
mov eax, dword [ebx + 0x6179b8]
test eax, eax
jne 0x4e7551
push dword [ebp - 0x54]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp - 0x44]
push 0xff00ff
push esi
push dword [eax]
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov edi, dword [ebp - 0x3c]
test edi, edi
je 0x4e7696
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebx + 4]
test eax, eax
je 0x4e7696
push 0x62a660
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4e768d
push edi
call eax
jmp 0x4e7696
push dword [ebx + 0x6179c0]
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x20]
push 4
push eax
push edi
call dword [sym.imp.USER32.dll_DrawFrameControl]
jmp 0x4e760d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x34]
mov bl, 1
mov byte [ebp - 4], 0
test eax, eax
je 0x4e76b5
push eax
mov dword [ebp - 0x4c], 0
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x4e76b5
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4e76d1
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x44], esi
mov al, bl
jmp 0x4e76d7
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.0059046a
mov esp, ebp
pop ebp
ret 0x10