Function at 0x4018b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x328
mov eax, dword [0x415060]
xor eax, esp
mov dword [esp + 0x324], eax
push ebx
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
xor ebx, ebx
push 5
mov dword [esp + 0x14], 0x100
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
call edi
mov ebp, 0xffffff
push 4
mov dword [esp + 0x1c], ebp
call edi
push 0xc
mov dword [esp + 0x1c], ebp
call edi
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 0xc0c0c0
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
cmp dword [esi + 4], ebx
mov edi, 0x80000000
mov dword [esi + 0xc], eax
mov dword [esi + 0x34c], ebx
mov dword [esi + 0x348], ebx
mov dword [esi + 0x35c], ebx
mov dword [esi + 0x358], ebx
mov dword [esi + 0x364], ebx
mov dword [esi + 0x360], ebx
mov dword [esi + 0x380], edi
mov dword [esi + 0x37c], edi
mov dword [esi + 0x378], edi
mov dword [esi + 0x374], edi
mov eax, str.Image
jne 0x40195e
mov eax, str.Tracer
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x234]
push edx
push eax
call fcn.00406670
add esp, 0xc
test eax, eax
jne 0x4019ce
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x240]
push str._d__d__d__d
push ecx
call fcn.00406cc0
add esp, 0x18
cmp eax, 4
jne 0x4019ce
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x374], edx
mov edx, dword [esp + 0xc]
mov dword [esi + 0x378], eax
mov dword [esi + 0x37c], ecx
mov dword [esi + 0x380], edx
cmp dword [esi + 4], ebx
mov ecx, str.Ghostscript_Image
jne 0x4019dd
mov ecx, str.Ghostscript_Graphical_Trace
lea edx, [esp + 0x130]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
cmp al, bl
jne 0x4019e4
push 0x104
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, ebx
jbe 0x401a69
add eax, 0xffffffff
cmp eax, ebx
jl 0x401a1b
mov cl, 0x2e
cmp byte [esp + eax + 0x2c], cl
je 0x401a1b
sub eax, 1
jns 0x401a10
cmp eax, 0x100
jae 0x401a69
cmp dword [esi + 4], ebx
mov ecx, dword [str..ini]
mov dl, byte [0x412650]
lea eax, [esp + eax + 0x2c]
mov dword [eax], ecx
mov byte [eax + 4], dl
mov eax, str.Ghostscript_Image
jne 0x401a46
mov eax, str.Ghostscript_Graphical_Trace
lea ecx, [esp + 0x2c]
push ecx
push 0x100
lea edx, [esp + 0x138]
push edx
push eax
push str.Title
push str.Window
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [esi + 0x37c]
mov edx, dword [esi + 0x378]
push eax
mov eax, dword [esi + 0x380]
push ebx
push ebx
push eax
mov eax, dword [esi + 0x374]
push ecx
push edx
push eax
push 0xcf0000
lea ecx, [esp + 0x154]
push ecx
push str.Ghostscript_Image
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp dword [esi + 4], ebx
mov dword [esi + 8], eax
jne 0x401af1
mov ebp, dword [esi + 0x374]
cmp ebp, edi
je 0x401af1
mov edi, dword [esi + 0x378]
cmp edi, 0x80000000
je 0x401af1
mov edx, dword [esi + 0x37c]
cmp edx, 0x80000000
je 0x401af1
mov ecx, dword [esi + 0x380]
cmp ecx, 0x80000000
je 0x401af1
push ebx
push ecx
push edx
push edi
push ebp
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 8]
xor edx, edx
cmp dword [esi + 4], ebx
setne dl
lea edx, [edx + edx + 5]
push edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 8]
push ebx
push ecx
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov ebp, dword [sym.imp.USER32.dll_AppendMenuA]
push ebx
push ebx
mov edi, eax
push 0x800
push edi
call ebp
push str.Copy_to_Clipboard
push 1
push ebx
push edi
call ebp
push str.Show_as_Gray
push 2
push ebx
push edi
call ebp
push ebx
push ebx
push 0x800
push edi
call ebp
push esi
call fcn.00401630
mov ecx, dword [esp + 0x334]
add esp, 4
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00406a2d
add esp, 0x328
ret