Function at 0x401c72
Capabilities:
Get common file path
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x403e1d
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x406018]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
push edi
mov eax, dword [0x406018]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
push esi
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004021c7
pop ecx
pop ecx
mov dword [esp + 0x468], esi
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx - 0xc]
cmp edi, esi
jle 0x401d2a
lea eax, [edi - 1]
cmp eax, esi
jl 0x401fba
cmp eax, edi
jg 0x401fba
movzx eax, word [ecx + eax*2]
cmp ax, 0x5c
je 0x401d2a
lea ebx, [edi + 1]
push ebx
lea esi, [esp + 0x1c]
call fcn.004023a1
mov word [eax + edi*2], 0x5c
mov eax, ebx
mov edx, esi
call fcn.00402489
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x34]
mov byte [esp + 0x470], 1
lea edi, [esp + 0x28]
mov dword [esp + 0x1c], esi
call fcn.00401b79
pop ecx
xor edi, edi
cmp dword [esp + 0x18], esi
pop ecx
jle 0x401d9f
cmp dword [esp + 0x24], esi
je 0x401d73
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x24]
sar eax, 2
cmp edi, eax
jb 0x401d79
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x24]
lea eax, [eax + edi*4]
mov eax, dword [eax]
push 0x404318
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x401fc4
inc edi
cmp edi, dword [esp + 0x14]
jl 0x401d5e
mov byte [esp + 0x468], 0
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x401dc2
push dword [esp + 0x28]
call fcn.004026f4
push dword [esp + 0x24]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [0x406144]
mov ecx, 0x406144
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov edi, 0x206
push edi
lea eax, [esp + 0x4a]
push esi
mov byte [esp + 0x470], 2
push eax
mov word [esp + 0x50], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp + 0x44]
push eax
push esi
push esi
push 0x801a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x401e5e
push edi
lea eax, [esp + 0x252]
push esi
push eax
mov word [esp + 0x258], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp + 0x44]
push eax
push 0x40436c
lea eax, [esp + 0x254]
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll_swprintf_s]
add esp, 0x10
lea eax, [esp + 0x24c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004022aa
mov ebx, dword [esp + 0x14]
mov esi, 0x404394
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
mov edi, esi
sub edi, ebx
mov ebx, dword [ebx - 0xc]
mov dword [esp + 0x20], eax
add eax, ebx
pop ecx
mov dword [esp + 0x40], esi
push eax
lea esi, [esp + 0x18]
sar edi, 1
mov dword [esp + 0x38], eax
call fcn.004023a1
cmp edi, ebx
lea edi, [eax + edi*2]
jbe 0x401e97
mov edi, dword [esp + 0x40]
push edi
push dword [esp + 0x20]
lea eax, [eax + ebx*2]
push eax
mov eax, dword [esp + 0x28]
call fcn.00402637
mov eax, dword [esp + 0x40]
add esp, 0xc
lea edx, [esp + 0x14]
call fcn.00402489
mov ebx, dword [esp + 0x14]
push ebx
xor esi, esi
push esi
push 0x4043ac
push 0x4043cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x401f18
call fcn.004020cd
cmp al, 5
jae 0x401ee7
call fcn.00402052
test eax, eax
je 0x401f18
mov edi, dword [esp + 0x18]
push 0x484
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x401f04
push edi
mov esi, eax
call fcn.00401118
mov esi, eax
test esi, esi
je 0x401f18
mov ecx, esi
call fcn.00401206
dec dword [esi]
jne 0x401f18
call fcn.00401a7d
lea eax, [esp + 0x34]
push 0x4043d8
push eax
lea ecx, [esp + 0x20]
xor edi, edi
call fcn.00402310
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
call fcn.00402d41
test esi, esi
je 0x401f7e
push 0x404404
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401f6c
push dword [ebp + 0x14]
push dword [esp + 0x34]
push dword [esp + 0x44]
push dword [esp + 0x44]
call eax
mov edi, eax
push 0xfefefefe
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebx - 0x10]
call fcn.00402d41
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00402d41
mov eax, edi
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.004032ae
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.00402d59
lea eax, [esp + 0x1c]
push 0x40432c
push eax
lea ecx, [esp + 0x20]
xor ebx, ebx
call fcn.00402310
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.00402d41
cmp edi, esi
je 0x402018
push 0x404354
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x402018
push dword [ebp + 0x14]
push dword [esp + 0x34]
push dword [esp + 0x44]
push dword [esp + 0x44]
call eax
mov ebx, eax
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x402033
push dword [esp + 0x28]
call fcn.004026f4
push dword [esp + 0x24]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.00402d41
mov eax, ebx
jmp 0x401f94