Function at 0x40ebc0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b41d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b8
mov eax, dword [0x4da0c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x280], eax
lea esi, [eax + 0xc]
mov byte [eax], 0
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov byte [ebp - 4], 1
mov dword [eax + 4], 0
mov dword [eax + 8], 0
lea eax, [ebp - 0x120]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40ecd4
lea ecx, [ebp - 0x120]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ec80
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
mov ecx, esi
call fcn.00402b70
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x40ecbe
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x40ecb6
mov eax, dword [esi]
mov word [eax + ecx], 0x5c
jmp 0x40ecd4
push 1
push 0x4cf258
push dword [ebp - 0x280]
mov ecx, esi
push 1
call fcn.004085f0
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x288], 0
push str.Path.ini
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x284], 0
movups xmmword [ebp - 0x298], xmm0
call fcn.00408750
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 0xf
mov eax, dword [esi + 0x10]
jbe 0x40ed13
mov esi, dword [esi]
push eax
push esi
push 0
lea ecx, [ebp - 0x298]
call fcn.00413030
mov dword [ebp - 0x250], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x260], xmm0
mov dword [ebp - 0x24c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x260], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x250], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 0xf
cmova eax, dword [ebp - 0x260]
push eax
push 0
push str.count
push 0x4cf438
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x24c]
mov esi, eax
mov dword [ebp - 0x248], esi
cmp ecx, 0xf
jbe 0x40edd1
mov edx, dword [ebp - 0x260]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40edc7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f0ff
push ecx
push edx
call fcn.004734a9
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x284]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
cmp ecx, 0xf
jbe 0x40ee2a
mov edx, dword [ebp - 0x298]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ee20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f0ff
push ecx
push edx
call fcn.004734a9
add esp, 8
xor edi, edi
test esi, esi
jle 0x40f0db
mov eax, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x27c], eax
nop
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x2a0], 0
push str.Path.ini
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x29c], 0
movups xmmword [ebp - 0x2b0], xmm0
call fcn.00408750
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x244]
add eax, 0xc
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x40ee88
mov eax, dword [eax]
push ecx
push eax
push 0
lea ecx, [ebp - 0x2b0]
call fcn.00413030
xorps xmm0, xmm0
mov dword [ebp - 0x268], 0
movups xmmword [ebp - 0x278], xmm0
mov dword [ebp - 0x264], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x278], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x268], xmm0
mov byte [ebp - 4], 4
lea esi, [ebp - 0x278]
mov dword [eax + 0x10], 0
lea ecx, [ebp - 0x2c8]
mov dword [eax + 0x14], 0xf
mov edx, edi
mov byte [eax], 0
cmp dword [ebp - 0x264], 0xf
cmova esi, dword [ebp - 0x278]
call fcn.0040a3a0
cmp dword [eax + 0x14], 0xf
jbe 0x40ef0a
mov eax, dword [eax]
push esi
push 0x104
lea ecx, [ebp - 0x228]
push ecx
push 0x4cefc9
push eax
push 0x4cf438
call dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x2b4]
cmp ecx, 0xf
jbe 0x40ef62
mov edx, dword [ebp - 0x2c8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ef58
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f0ff
push ecx
push edx
call fcn.004734a9
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x264]
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2b4], 0xf
mov byte [ebp - 0x2c8], 0
cmp ecx, 0xf
jbe 0x40efbb
mov edx, dword [ebp - 0x278]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40efb1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f0ff
push ecx
push edx
call fcn.004734a9
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x29c]
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], 0
cmp ecx, 0xf
jbe 0x40f014
mov edx, dword [ebp - 0x2b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f00a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f0ff
push ecx
push edx
call fcn.004734a9
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x230], 0
lea eax, [ebp - 0x228]
mov dword [ebp - 0x22c], 0
movups xmmword [ebp - 0x240], xmm0
lea edx, [eax + 1]
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f040
sub eax, edx
lea ecx, [ebp - 0x240]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00408750
mov byte [ebp - 4], 5
cmp dword [ebp - 0x230], 0
je 0x40f094
mov esi, dword [ebp - 0x244]
lea ecx, [ebp - 0x240]
push ecx
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x2c]
je 0x40f08b
mov ecx, eax
call fcn.00406820
add dword [esi + 0x28], 0x18
jmp 0x40f094
push eax
lea ecx, [esi + 0x24]
call fcn.00414550
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x22c]
cmp ecx, 0xf
jbe 0x40f0ce
mov edx, dword [ebp - 0x240]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f0c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f0ff
push ecx
push edx
call fcn.004734a9
add esp, 8
inc edi
cmp edi, dword [ebp - 0x248]
jl 0x40ee40
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00473461
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0047b2e0
int3