Function at 0x4013b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2b0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c4]
push edi
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x140]
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x2c4]
mov ecx, 0x40
lea edi, [esp + 0x1c0]
push 0x80
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c4]
lea ebx, [esi + 0x200]
push eax
push 0xffffffffffffffff
push ebx
push 0
push ebp
mov dword [esp + 0x44], 0
call dword [sym.imp.GDI32.dll_GetTextCharset]
push eax
call fcn.004011c0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov al, byte [esi + 0x2a0]
push 0
push 0
lea ecx, [esp + 0x148]
push 0x80
push ecx
lea edx, [esp + 0x1d0]
push 0xffffffffffffffff
push edx
push 0
push eax
call fcn.004011c0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edi, [esp + 0x140]
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x40147d
test cl, cl
je 0x401479
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x40147d
add eax, 2
add edi, 2
test cl, cl
jne 0x401459
xor eax, eax
jmp 0x401482
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4014a6
mov eax, dword [esi + 0x2d0]
mov dword [esi + 0x2d4], 1
test eax, eax
je 0x4014b0
push esi
push ebp
call fcn.00401360
add esp, 8
jmp 0x4014b0
mov dword [esi + 0x2d4], 0
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x5c]
push 0x48
push 0x5a
push ebp
rep stosd dword es:[edi], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
mov eax, dword [esi + 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esi + 0x2bc]
mov dword [esp + 0x60], 0
neg eax
neg ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x2b4]
sbb ecx, ecx
mov dword [esp + 0x64], eax
and ecx, 0x12c
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0x2c0]
add ecx, 0x190
mov dword [esp + 0x6c], ecx
mov ecx, dword [esi + 0x2ac]
test eax, eax
mov al, byte [esi + 0x2a0]
mov byte [esp + 0x71], 0
setne dl
neg ecx
mov byte [esp + 0x70], dl
mov byte [esp + 0x73], al
sbb cl, cl
lea edx, [esi + 0x280]
lea eax, [esp + 0x78]
and ecx, 7
push edx
push eax
mov byte [esp + 0x7a], 0
mov byte [esp + 0x7c], cl
mov byte [esp + 0x7d], 0
mov byte [esp + 0x7e], 0
mov byte [esp + 0x7f], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
test eax, eax
mov dword [esp + 0x38], eax
jne 0x40158c
push 0x4080e8
call fcn.004024da
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2b0
ret
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push ebp
call dword [sym.imp.GDI32.dll_SetBkMode]
lea edx, [esp + 0x1c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esi + 0x2c0]
test eax, eax
je 0x4015d1
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
neg eax
add ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
add ecx, eax
mov ax, word [esi + 0x2b4]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.00401120
mov dword [esp + 0x20], edx
mov dx, word [esi + 0x2b4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.00401120
mov dword [esp + 0x34], eax
mov eax, edx
cdq
mov ecx, eax
mov eax, dword [esp + 0x24]
xor ecx, edx
lea edi, [esi + 0x2a4]
sub ecx, edx
add esp, 0x10
cdq
xor eax, edx
mov dword [esp + 0xac], 0x94
sub eax, edx
add ecx, eax
mov eax, dword [esp + 0x18]
cdq
mov dword [edi], ecx
mov ecx, eax
mov eax, dword [esp + 0x24]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
lea edx, [esp + 0xac]
add ecx, eax
push edx
mov dword [esi + 0x2a8], ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40169d
mov edx, dword [esp + 0xbc]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
jne 0x401691
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x2c], eax
cmp ecx, 0x5a
jb 0x401699
mov dword [esp + 0x2c], 1
test eax, eax
jne 0x4016b5
mov eax, dword [esi + 0x2ac]
test eax, eax
jne 0x4016b5
mov eax, dword [esi + 0x2cc]
test eax, eax
je 0x4019b5
lea eax, [esp + 0x2d0]
push eax
push ebp
call dword [sym.imp.GDI32.dll_StartDocA]
test eax, eax
jle 0x4019b5
push 0
push 0
push edi
push 8
push 0x1387
push ebp
call dword [sym.imp.GDI32.dll_ExtEscape]
push ebp
call dword [sym.imp.GDI32.dll_StartPage]
test eax, eax
jl 0x4019b5
mov eax, dword [edi]
mov ecx, dword [esi + 0x2ac]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x2a8]
cdq
sub eax, edx
mov edi, eax
xor eax, eax
sar edi, 1
cmp ecx, eax
je 0x40192e
mov word [esp + 0x3c], ax
mov word [esp + 0x40], ax
mov word [esp + 0x42], ax
mov word [esp + 0x44], ax
mov word [esp + 0x46], ax
mov word [esp + 0x48], ax
mov eax, dword [esp + 0x1c]
mov ecx, 1
cdq
sub eax, edx
mov word [esp + 0x3e], cx
sar eax, 1
mov word [esp + 0x4a], cx
mov ecx, eax
mov eax, dword [esi + 0x2c0]
neg ecx
test eax, eax
mov dword [esp + 0x30], ecx
je 0x401773
mov eax, dword [esp + 0x5c]
cdq
and edx, 3
add eax, edx
sar eax, 2
neg eax
add ecx, eax
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x20]
mov cx, word [esi + 0x2b4]
cdq
and edx, 3
push ecx
add eax, edx
lea edx, [esp + 0x28]
sar eax, 2
neg eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
push edx
push eax
call fcn.004010b0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x2b8]
add esp, 0xc
add ecx, edx
mov edx, dword [esp + 0x28]
push eax
sub edi, edx
push 3
push 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.GDI32.dll_CreatePen]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebp
mov dword [esp + 0x54], eax
call edi
mov ecx, dword [esi + 0x2b8]
mov dword [esp + 0x50], eax
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push ebp
mov dword [esp + 0x60], eax
call edi
mov dword [esp + 0x54], eax
mov al, byte [ebx]
test al, al
je 0x401905
and eax, 0xff
push ebx
mov esi, eax
push ebx
mov dword [esp + 0x18], esi
call fcn.0040249d
add esp, 8
cmp eax, 0xffffffff
jne 0x401826
inc ebx
xor edx, edx
shl esi, 8
mov dl, byte [ebx]
or esi, edx
mov dword [esp + 0x10], esi
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x98]
push eax
push 0
push 0
push ecx
push 2
push esi
push ebp
inc ebx
call dword [sym.imp.GDI32.dll_GetGlyphOutlineA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4018ff
push edi
call fcn.004023eb
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0x3c]
mov esi, eax
push edx
push esi
lea eax, [esp + 0xa0]
push edi
push eax
push 2
push ecx
push ebp
call dword [sym.imp.GDI32.dll_GetGlyphOutlineA]
mov edx, dword [esi + 0xc]
push 0
push edx
call fcn.00401180
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 8]
add esp, 4
sub ecx, eax
push ecx
push edx
call fcn.00401180
mov edx, dword [esp + 0x20]
add esp, 4
add eax, edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_MoveToEx]
lea eax, [esp + 0x14]
push eax
push edi
push esi
push ebp
call fcn.00402210
add esp, 0x10
test esi, esi
je 0x4018c1
push esi
call fcn.00402382
add esp, 4
movsx ecx, word [esp + 0xa8]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
add edx, ecx
test eax, eax
mov dword [esp + 0x14], edx
je 0x4018e9
movsx edx, word [esp + 0xaa]
add dword [esp + 0x18], edx
jmp 0x4018f5
movsx eax, word [esp + 0xaa]
sub dword [esp + 0x18], eax
mov al, byte [ebx]
test al, al
jne 0x4017fe
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x50]
push ecx
push ebp
call edi
mov edx, dword [esp + 0x54]
push edx
push ebp
call edi
mov eax, dword [esp + 0x4c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call esi
mov ecx, dword [esp + 0x58]
push ecx
call esi
jmp 0x4019b5
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
cdq
and edx, 3
lea ecx, [esp + 0x24]
add eax, edx
mov dx, word [esi + 0x2b4]
sar eax, 2
neg eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x30]
push edx
push eax
push ecx
call fcn.004010b0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
add eax, edx
mov edx, dword [esp + 0x40]
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
sub edi, edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push ebp
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0x1e
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov ecx, dword [esi + 0x2b8]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
push eax
push ebx
push edi
push edx
push ebp
call dword [sym.imp.GDI32.dll_TextOutA]
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2b0
ret