Function at 0x10319df
Capabilities:
Print debug messages

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 0x48
push ebx
mov ecx, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x20], eax
push edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
cmp ecx, eax
jne 0x1031a24
mov eax, dword [ebp + 0xc]
movsx edx, word [eax + 0x7a]
movsx ecx, word [eax + 0x78]
movzx eax, word [eax + 0x76]
add eax, edx
push eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x74]
add eax, ecx
push eax
push edx
push ecx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_SetRect]
jmp 0x1031a2f
push ecx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0x50]
test edi, edi
jne 0x1031a76
push 0x6c9
push str.c:_ntprivatectoleuiole2.0_appscommonchicago..drawing.c
push str.Cl32Test___ansi
push str.Assert_Failure__Module:__s__file__s__line__d_r_n
push 0x1056c90
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1056c90
call esi
push str.Null_Doc
call esi
push 0x104c08c
call esi
mov eax, dword [edi + 0xa8]
mov eax, dword [eax + 0x164]
test eax, eax
je 0x1031ae2
push 1
mov esi, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
mov edi, dword [sym.imp.GDI32.dll_RealizePalette]
mov dword [ebp - 0x20], eax
call edi
mov eax, dword [ebp + 0xc]
add eax, 0x72
mov dword [ebp - 0xc], eax
mov ax, word [eax]
sub ax, 0x5001
movzx eax, ax
or eax, 0x1000000
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x1000007
push 5
push 6
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
mov dword [ebp - 0x1c], eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x1031b1f
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x72
movzx ecx, word [eax]
mov dword [ebp - 0xc], eax
push dword [ecx*4 + 0x1042b3c]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x808080
push 5
push 6
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
mov dword [ebp - 0x1c], eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x70]
cmp eax, 0x5101
je 0x1031b53
cmp eax, 0x5102
je 0x1031ca9
cmp eax, 0x5103
je 0x1031c74
cmp eax, 0x5104
je 0x1031c99
jmp 0x1031cd0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp eax, 0x5001
je 0x1031b72
cmp eax, 0x5002
je 0x1031b7d
cmp eax, 0x5003
je 0x1031b88
xor ebx, ebx
jmp 0x1031b94
mov ebx, dword [0x1056c74]
lea eax, [ebp - 0x10]
jmp 0x1031b91
mov ebx, dword [0x1056d9c]
lea eax, [ebp - 0x14]
jmp 0x1031b91
mov ebx, dword [0x1056c70]
lea eax, [ebp - 0x18]
mov dword [ebp - 8], eax
cmp dword [0x104ed54], 0
je 0x1031c5f
test ebx, ebx
je 0x1031c5f
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
cmp eax, 0x80
jge 0x1031bbf
mov dword [ebp - 4], 1
jmp 0x1031bcb
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x48]
push dword [ebp - 0x2c]
add eax, dword [ebp - 4]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push edx
call dword [sym.imp.USER32.dll_SetRect]
push 1
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
call edi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
movzx ecx, byte [ebp - 0x18]
movzx eax, byte [ebp - 0x14]
movzx edx, byte [ebp - 0x10]
shl eax, 8
or ch, 2
shl ecx, 0x10
or ecx, eax
or ecx, edx
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ebx, eax
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [ebp - 4]
push ebx
add dword [ebp - 0x48], ecx
add dword [ebp - 0x40], ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 8]
mov dword [ecx], edi
add edi, 2
cmp edi, 0x100
jl 0x1031bfd
push 0
push 0xf
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
jmp 0x1031cd0
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
jmp 0x1031cd0
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
jmp 0x1031cd0
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
sar eax, 2
push eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
sar eax, 2
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push esi
call dword [sym.imp.GDI32.dll_RoundRect]
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
push dword [ecx*4 + 0x103af84]
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
cmp ax, 0x5004
je 0x1031cf6
cmp ax, 0x5003
jne 0x1031d0c
push 0xffffff
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], eax
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x1031dda
mov eax, dword [ebp + 0xc]
add eax, 0x9c
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ebx, eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 2
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebp + 0x10]
cmp eax, 2
jne 0x1031d5d
cmp dword [0x104ef7c], 0
je 0x1031d5d
push str.MMF_
mov eax, dword [0x1056b60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1031d95
cmp eax, 1
jne 0x1031d75
push str.BMP_
mov eax, dword [0x1056b60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1031d95
cmp eax, 3
jne 0x1031d8d
push str.DIB_
mov eax, dword [0x1056b60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1031d95
mov eax, dword [0x1056b60]
mov byte [eax], 0
mov eax, dword [ebp + 0xc]
add eax, 0x7c
push eax
push dword [0x1056b60]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [0x1056b60]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp - 0x2c]
push dword [0x1056b60]
add eax, dword [ebp - 0x34]
cdq
sub eax, edx
sar eax, 1
sub eax, 0xa
push eax
mov eax, dword [ebp - 0x38]
add eax, 5
push eax
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
jmp 0x1031ddd
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x50]
cmp dword [ecx + 0xb8], 2
jne 0x1031df7
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.USER32.dll_InvertRect]
cmp dword [ebp - 0x28], 0
je 0x1031e07
push dword [ebp - 0x24]
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 7
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x20], 0
je 0x1031e3f
push 1
push 0xf
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
test edi, edi
je 0x1031e4a
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14