Function at 0x403040
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x118
mov eax, dword [ecx]
mov edx, dword [ecx + 8]
mov dword [ebp - 0xcc], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 0xc]
cmp eax, 0xf
je 0x4030a0
cmp eax, 0x400
jne 0x403790
test edx, edx
jne 0x4037c8
mov dword [global_NewMetrics], 1
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
lea esi, [ebp - 0x58]
mov ecx, dword [global_NewMetrics]
mov eax, dword [global_EditLeftmost]
lea ebx, [ebp - 0x94]
mov dword [esp + 4], esi
mov esi, dword [ebp - 0xcc]
mov dword [ebp - 0xb0], ecx
mov dword [esp], esi
mov dword [ebp - 0xc8], eax
call sym._BeginPaint_8
sub esp, 8
mov edi, eax
call dbg.make_dc
mov edx, eax
mov dword [ebp - 0xdc], eax
mov eax, ebx
lea ebx, [ebp - 0x84]
call dbg.get_print_rect
mov ecx, dword [ebp - 0xcc]
mov dword [esp + 4], ebx
mov esi, dword [ebp - 0x8c]
mov dword [esp], ecx
call sym._GetClientRect_8
sub esp, 8
mov dword [esp], 4
call sym._GetSysColorBrush_4
sub esp, 4
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
call sym._FillRect_12
mov eax, dword [ebp - 0xc8]
add dword [ebp - 0x80], 3
sub esp, 0xc
sub dword [ebp - 0x78], 3
mov dword [esp], edi
mov dword [esp + 4], 0x58
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0x84], eax
call sym._GetDeviceCaps_8
mov edi, dword [sym.imp.kernel32.dll_MulDiv]
sub esp, 8
mov dword [esp + 4], eax
mov eax, esi
sub eax, dword [0x41b4a4]
mov dword [esp + 8], 0x5a0
mov dword [esp], eax
call edi
sub esp, 0xc
mov dword [ebp - 0x7c], eax
mov dword [esp], 0
call sym._GetStockObject_4
sub esp, 4
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xd0]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._FillRect_12
mov eax, dword [ebp - 0xd0]
sub dword [ebp - 0x80], 1
sub esp, 0xc
add dword [ebp - 0x78], 1
mov dword [esp + 0xc], 0xf
mov dword [esp + 8], 0xa
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._DrawEdge_16
mov ecx, dword [ebp - 0x7c]
sub esp, 0x10
lea eax, [ecx - 1]
mov dword [esp + 4], 0x58
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0xd0]
mov dword [esp], eax
call sym._GetDeviceCaps_8
add esi, dword [0x41b4ac]
sub esi, dword [0x41b4a4]
sub esp, 8
mov dword [esp + 8], 0x5a0
mov dword [esp + 4], eax
mov dword [esp], esi
call edi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0xd0]
sub esp, 0xc
mov dword [esp + 0xc], 0xf
mov dword [esp + 8], 6
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._DrawEdge_16
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
sub esp, 0x10
test ecx, ecx
je 0x4036e9
mov eax, dword [0x41b41c]
mov dword [ebp - 0x74], 0x53004d
mov dword [ebp - 0x70], 0x530020
mov dword [ebp - 0x6c], 0x6e0061
mov dword [ebp - 0x68], 0x200073
mov dword [ebp - 0x64], 0x650053
mov dword [ebp - 0x60], 0x690072
mov dword [ebp - 0x5c], 0x66
test eax, eax
je 0x4032b6
mov dword [esp], eax
call sym._DeleteDC_4
mov eax, dword [0x41b418]
sub esp, 4
mov dword [esp], eax
call sym._DeleteObject_4
sub esp, 4
mov dword [esp], 0
call sym._CreateCompatibleDC_4
sub esp, 4
mov dword [0x41b41c], eax
mov dword [esp + 4], 0x58
mov dword [esp], eax
call sym._GetDeviceCaps_8
sub esp, 8
mov esi, eax
mov dword [esp + 8], 0x9ec
mov dword [esp + 4], 0x5a0
mov dword [esp], 0x3e8
call edi
sub esp, 0xc
mov dword [esp + 4], esi
mov dword [esp + 8], 0x5a0
mov dword [esp], eax
call edi
fnstcw word [ebp - 0xaa]
mov dword [ebp - 0xb8], eax
sub esp, 0xc
fild dword [ebp - 0xb8]
fmul dword [0x41150c]
movzx eax, word [ebp - 0xaa]
or ah, 0xc
mov word [ebp - 0xac], ax
mov eax, dword [ebp - 0x78]
fldcw word [ebp - 0xac]
fistp dword [ebp - 0xb4]
fldcw word [ebp - 0xaa]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 4], eax
mov eax, dword [0x41b41c]
mov dword [esp], eax
call sym._CreateCompatibleBitmap_12
sub esp, 0xc
mov dword [0x41b418], eax
mov dword [esp + 4], eax
mov eax, dword [0x41b41c]
mov dword [esp], eax
call sym._SelectObject_8
sub esp, 8
mov dword [esp], 0
call sym._GetStockObject_4
sub esp, 4
mov dword [esp + 8], eax
mov eax, dword [0x41b41c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._FillRect_12
lea eax, [ebp - 0x74]
sub esp, 0xc
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 6
mov dword [esp], 0xa
call sym._CreateFontW_56
sub esp, 0x38
mov dword [ebp - 0xe0], eax
mov dword [esp + 4], eax
mov eax, dword [0x41b41c]
mov dword [esp], eax
call sym._SelectObject_8
mov eax, dword [0x41b41c]
sub esp, 8
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._SetBkMode_8
mov eax, dword [0x41b41c]
sub esp, 8
mov dword [esp + 4], 6
mov dword [esp], eax
call sym._SetTextAlign_8
fild dword [ebp - 0x78]
fild dword [ebp - 0x80]
fnstcw word [ebp - 0xaa]
mov edx, dword [ebp - 0x7c]
sub esp, 8
movzx eax, word [ebp - 0xaa]
fsubp st(1)
fmul dword [0x411508]
or ah, 0xc
mov word [ebp - 0xac], ax
fldcw word [ebp - 0xac]
fistp dword [ebp - 0xb0]
fldcw word [ebp - 0xaa]
mov eax, dword [ebp - 0xb0]
lea esi, [eax + 1]
mov dword [ebp - 0xbc], esi
mov esi, dword [ebp - 0xc8]
sub edx, esi
lea ecx, [edx + 1]
mov dword [ebp - 0xb0], ecx
cmp esi, edx
jg 0x4036d8
mov esi, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xb4]
xor edx, edx
mov dword [ebp - 0x9a], 0x640025
mov word [ebp - 0x96], dx
mov ebx, esi
add ebx, ecx
cmp dword [ebp - 0xb0], ebx
jl 0x4036d8
mov dword [ebp - 0xc4], 1
lea edx, [eax + 3]
add ebx, ecx
lea ecx, [eax - 2]
add eax, 4
mov dword [ebp - 0xc0], edx
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xbc]
mov edi, ebx
sub edi, dword [ebp - 0xb4]
mov dword [esp + 0xc], 0
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [0x41b41c]
mov dword [esp], eax
call sym._MoveToEx_16
mov ecx, dword [ebp - 0xc0]
mov eax, dword [0x41b41c]
sub esp, 0x10
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._LineTo_12
sub esp, 0xc
cmp dword [ebp - 0xb0], ebx
jl 0x4036d8
mov edx, dword [ebp - 0xd4]
mov eax, dword [0x41b41c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._MoveToEx_16
mov edx, dword [ebp - 0xd8]
mov eax, dword [0x41b41c]
sub esp, 0x10
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._LineTo_12
mov edx, dword [ebp - 0xb4]
sub esp, 0xc
lea edi, [edi + edx*2]
cmp dword [ebp - 0xb0], edi
jl 0x4036d8
mov edx, dword [ebp - 0xbc]
mov eax, dword [0x41b41c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._MoveToEx_16
mov ecx, dword [ebp - 0xc0]
mov eax, dword [0x41b41c]
sub esp, 0x10
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._LineTo_12
add esi, dword [ebp - 0xb8]
sub esp, 0xc
cmp dword [ebp - 0xb0], esi
jl 0x4036d8
mov eax, dword [ebp - 0xc4]
lea edi, [ebp - 0xa0]
mov dword [esp], edi
mov dword [esp + 8], eax
lea eax, [ebp - 0x9a]
mov dword [esp + 4], eax
call sym._wsprintfW
cmp word [ebp - 0xa0], 0
je 0x4037e0
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x403660
sub eax, edi
sar eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [0x41b41c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 5
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._TextOutW_20
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebp - 0xc8]
add dword [ebp - 0xc4], 1
sub esp, 0x14
cmp esi, eax
jg 0x4036d8
mov eax, dword [ebp - 0xb4]
xor ecx, ecx
add ebx, dword [ebp - 0xb8]
mov dword [ebp - 0x9a], 0x640025
mov word [ebp - 0x96], cx
add eax, esi
cmp dword [ebp - 0xb0], eax
jge 0x403520
lea esi, [esi]
mov eax, dword [ebp - 0xe0]
mov dword [esp], eax
call sym._DeleteObject_4
sub esp, 4
mov eax, dword [0x41b41c]
mov ebx, dword [ebp - 0xd0]
mov dword [esp + 0x20], 0x8800c6
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x78]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call sym._BitBlt_36
sub esp, 0x24
mov dword [esp], 4
call sym._GetStockObject_4
sub esp, 4
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._SelectObject_8
mov eax, dword [ebp - 0xdc]
sub esp, 8
mov dword [esp], eax
call sym._DeleteDC_4
lea eax, [ebp - 0x58]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xcc]
mov dword [esp], eax
call sym._EndPaint_8
xor eax, eax
sub esp, 8
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xcc]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
mov eax, dword [global_pPrevRulerProc]
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym._CallWindowProcW_20
sub esp, 0x14
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [edx]
mov dword [global_pPrevRulerProc], ecx
mov dword [global_EditLeftmost], eax
jmp 0x403080
xor eax, eax
jmp 0x40366d