Function at 0x455b30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5676eb
mov eax, dword fs:[0]
push eax
sub esp, 0x418
push ebx
push esi
push edi
mov eax, dword [0x5d26e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
call fcn.0049f3e4
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [esi + 0x10]
mov dword [esi], vtable.CTAIMemDC.0
mov dword [ebp - 0x10], eax
mov dword [eax], vtable.CGdiObject.0
mov dword [eax + 4], edi
mov byte [ebp - 4], 1
mov dword [eax], vtable.CBitmap.0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x34], eax
xor edx, edx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], edi
mov eax, dword [ebx + 0xc]
cmp eax, edi
mov eax, dword [ebp + 0x14]
sete dl
mov dword [esi + 0x30], edx
cmp eax, edi
jne 0x455be8
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_WindowFromDC]
push eax
call edi
push eax
call fcn.00497b5a
test eax, eax
je 0x455bff
mov ecx, dword [ebx + 4]
push ecx
call edi
push eax
call fcn.00497b5a
mov eax, dword [eax + 0x1c]
lea edx, [esi + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
jmp 0x455bff
mov ecx, dword [eax]
mov dword [esi + 0x20], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x24], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x28], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x2c], edx
push 0x428
call fcn.00494811
mov edi, eax
mov dword [edi], 0x28
mov eax, dword [esi + 0x28]
sub eax, dword [esi + 0x20]
add esp, 4
mov dword [edi + 4], eax
mov ecx, dword [esi + 0x2c]
sub ecx, dword [esi + 0x24]
mov edx, 1
mov dword [edi + 8], ecx
xor ecx, ecx
mov word [edi + 0xc], dx
mov eax, 8
mov word [edi + 0xe], ax
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], ecx
mov eax, dword [esi + 0x38]
lea edx, [ebp - 0x424]
push edx
push 0x100
add eax, 0x180
mov eax, dword [eax + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_GetPaletteEntries]
xor eax, eax
lea ecx, [edi + 0x29]
movzx edx, byte [ebp + eax*4 - 0x424]
mov byte [ecx + 1], dl
movzx edx, byte [ebp + eax*4 - 0x423]
mov byte [ecx], dl
movzx edx, byte [ebp + eax*4 - 0x422]
mov byte [ecx - 1], dl
mov byte [ecx + 2], 0
inc eax
add ecx, 4
cmp eax, 0xff
jl 0x455c70
cmp dword [esi + 0x30], 0
je 0x455d75
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0049f95e
mov eax, dword [esi + 4]
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0
push edi
push eax
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
lea ecx, [esi + 0x10]
call fcn.0049fc43
push edi
call fcn.004f9090
lea eax, [esi + 0x10]
add esp, 4
test eax, eax
je 0x455cec
mov eax, dword [eax + 4]
mov edx, dword [esi + 4]
push eax
push edx
call fcn.0049fd11
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.GDI32.dll_GetMapMode]
push eax
mov ecx, esi
call fcn.0049f0fc
mov edx, dword [ebx + 8]
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetWindowExtEx]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [esi]
push ecx
push edx
mov edx, dword [eax + 0x48]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
call edx
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetViewportExtEx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [esi]
mov edx, dword [edx + 0x40]
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call edx
mov eax, dword [ebx + 8]
push 2
lea edi, [esi + 0x20]
push edi
push eax
call dword [sym.imp.GDI32.dll_DPtoLP]
mov ecx, dword [esi + 0x24]
mov edx, dword [edi]
push ecx
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0049f4f8
jmp 0x455d87
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [ebx + 4]
mov dword [esi + 4], edx
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
lea eax, [esi + 0x20]
push eax
mov ecx, esi
call fcn.004a0413
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10