Function at 0x40a800
Capabilities:
Get common file path
Hide graphical window
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bab0
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x463024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x428], edi
mov dword [0x46acd8], edi
call fcn.00402520
mov ecx, eax
test ecx, ecx
je 0x40aba3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x424], esi
xor ebx, ebx
mov dword [ebp - 4], 0
test edi, edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
sete bl
push ebx
push dword [0x46b0f4]
mov dword [ebp - 0x42c], ebx
call edi
push ebx
push dword [0x4695d0]
call edi
xor eax, eax
cmp dword [ebp - 0x428], 1
setne al
push eax
push dword [0x4695e4]
call edi
push ebx
push dword [0x4695c4]
call edi
push ebx
push dword [0x46b330]
call edi
push ebx
push dword [0x46a064]
call edi
push ebx
push dword [0x4695b8]
call edi
push ebx
push dword [0x4695d0]
call edi
xor ebx, ebx
cmp dword [ebp - 0x428], 2
sete bl
push ebx
push dword [0x4695e0]
call edi
push ebx
push dword [0x46b118]
call edi
push 0
push dword [0x46b124]
call edi
push 0
push dword [0x469808]
call edi
push 0
push dword [0x46acd0]
call edi
xor eax, eax
cmp dword [ebp - 0x428], 1
sete al
push eax
push dword [0x46a27c]
call edi
push 0x25
call fcn.0040a000
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
add esp, 4
push eax
push dword [0x469800]
call edi
push 0x24
call fcn.0040a000
add esp, 4
push eax
push dword [0x46a494]
call edi
push 6
call fcn.0040a000
add esp, 4
push eax
push dword [0x46a27c]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
xor edi, edi
cmp dword [0x4679e4], edi
jle 0x40a989
mov esi, dword [ebp - 0x42c]
nop dword [eax]
push esi
push dword [edi*4 + 0x46b0f8]
call ebx
inc edi
cmp edi, dword [0x4679e4]
jl 0x40a970
mov esi, dword [ebp - 0x424]
cmp dword [ebp - 0x428], 0
jne 0x40ab68
push 0x46b128
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x218]
push str.version.ini
push 0x46b128
push str._s_s
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
push 0x104
lea eax, [ebp - 0x420]
push eax
push str.0.000
push str.version
push str.Version
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea eax, [ebp - 0x420]
push eax
push 0x46a068
call esi
push 0x46a068
push 0x46a280
push 0x448948
push 0x27
call fcn.0040a000
add esp, 8
push eax
lea eax, [ebp - 0x218]
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
push 0x46ace0
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp - 0x218]
push eax
push dword [0x46b0f4]
call edi
push 0x45c980
push 0
push 0
mov esi, dword [0x46b0f4]
push 0
push 0
push 1
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push 0x1c
call dword [sym.imp.GDI32.dll_CreateFontW]
push 0
push eax
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [0x46a064]
call ebx
push 1
push dword [0x4695d0]
call ebx
push 0x448948
push 0x1d
call fcn.0040a000
add esp, 8
push eax
push dword [0x4695e4]
call edi
push 1
push dword [0x4695b8]
call ebx
push 0x448948
push 0x1e
call fcn.0040a000
add esp, 8
push eax
push dword [0x4695c4]
call edi
push 0x448948
push 0x1f
call fcn.0040a000
push eax
lea eax, [ebp - 0x424]
push str._a__s__a_
push eax
call fcn.00416490
mov esi, dword [ebp - 0x424]
add esp, 0x14
cmp dword [esi - 4], 1
jle 0x40ab15
push dword [esi - 0xc]
lea ecx, [ebp - 0x424]
call fcn.004150a0
mov esi, dword [ebp - 0x424]
push esi
push dword [0x46b330]
call edi
push 0x448948
push 0xe
call fcn.0040a000
add esp, 8
push eax
push dword [0x4695b8]
call edi
push 0x448948
push 0
call fcn.0040a000
add esp, 8
push eax
push dword [0x4695d0]
call edi
xor edi, edi
cmp dword [0x4679e4], edi
jle 0x40ab68
mov ecx, edi
call fcn.0040a340
inc edi
cmp edi, dword [0x4679e4]
jl 0x40ab58
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40ab87
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ac2f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402280
int3