Function at 0x40e730
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 0x49ed2d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c0
mov eax, dword [0x4dd094]
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 - 0x284], eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x288], 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
lea edi, [eax + 0x24]
mov dword [ebp - 4], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 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 0x40e845
lea ecx, [ebp - 0x120]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e7f1
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
mov ecx, esi
call fcn.004028c0
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x40e82f
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x40e827
mov eax, dword [esi]
mov word [eax + ecx], 0x5c
jmp 0x40e845
push 1
push 0x4d2228
push dword [ebp - 0x288]
mov ecx, esi
push 1
call fcn.00408130
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x290], 0
push str.Path.ini
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x28c], 0
movups xmmword [ebp - 0x2a0], xmm0
call fcn.00408290
mov byte [ebp - 4], 2
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x40e883
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x2a0]
push eax
push 0
call fcn.00412c40
mov dword [ebp - 0x254], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x264], xmm0
mov dword [ebp - 0x250], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x264], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x254], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x264]
cmp dword [ebp - 0x250], 0x10
cmovae eax, dword [ebp - 0x264]
push eax
push 0
push str.count
push 0x4d2408
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x24c], eax
cmp ecx, 0x10
jb 0x40e941
mov edx, dword [ebp - 0x264]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e937
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ec86
push ecx
push edx
call fcn.00476d74
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x28c]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0xf
mov byte [ebp - 0x264], 0
cmp ecx, 0x10
jb 0x40e99a
mov edx, dword [ebp - 0x2a0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e990
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ec86
push ecx
push edx
call fcn.00476d74
add esp, 8
cmp dword [ebp - 0x24c], 0
mov dword [ebp - 0x244], 0
jle 0x40ec62
mov eax, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x248], eax
nop dword [eax]
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x2a8], 0
push str.Path.ini
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x2a4], 0
movups xmmword [ebp - 0x2b8], xmm0
call fcn.00408290
mov byte [ebp - 4], 3
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x40e9fe
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x2b8]
push eax
push 0
call fcn.00412c40
xorps xmm0, xmm0
mov dword [ebp - 0x26c], 0
movups xmmword [ebp - 0x27c], xmm0
mov dword [ebp - 0x268], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x27c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x26c], xmm0
mov edx, dword [ebp - 0x244]
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 4
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x27c]
cmp dword [ebp - 0x268], 0x10
cmovae eax, dword [ebp - 0x27c]
mov dword [ebp - 0x280], eax
call fcn.00409ef0
cmp dword [eax + 0x14], 0x10
jb 0x40ea8c
mov eax, dword [eax]
push dword [ebp - 0x280]
lea ecx, [ebp - 0x228]
push 0x104
push ecx
push 0x4d1f99
push eax
push 0x4d2408
call dword [ebp - 0x248]
mov ecx, dword [ebp - 0x2bc]
cmp ecx, 0x10
jb 0x40eae9
mov edx, dword [ebp - 0x2d0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40eadf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ec86
push ecx
push edx
call fcn.00476d74
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x268]
mov dword [ebp - 0x2c0], 0
mov dword [ebp - 0x2bc], 0xf
mov byte [ebp - 0x2d0], 0
cmp ecx, 0x10
jb 0x40eb42
mov edx, dword [ebp - 0x27c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40eb38
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ec86
push ecx
push edx
call fcn.00476d74
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2a4]
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0xf
mov byte [ebp - 0x27c], 0
cmp ecx, 0x10
jb 0x40eb9b
mov edx, dword [ebp - 0x2b8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40eb91
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ec86
push ecx
push edx
call fcn.00476d74
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]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ebc2
sub eax, edx
lea ecx, [ebp - 0x240]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00408290
mov byte [ebp - 4], 5
cmp dword [ebp - 0x230], 0
je 0x40ec0f
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x240]
push ecx
cmp eax, dword [edi + 8]
je 0x40ec07
mov ecx, eax
call fcn.00406400
add dword [edi + 4], 0x18
jmp 0x40ec0f
push eax
mov ecx, edi
call fcn.00414190
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x22c]
cmp ecx, 0x10
jb 0x40ec49
mov edx, dword [ebp - 0x240]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ec3f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ec86
push ecx
push edx
call fcn.00476d74
add esp, 8
mov eax, dword [ebp - 0x244]
inc eax
mov dword [ebp - 0x244], eax
cmp eax, dword [ebp - 0x24c]
jl 0x40e9c0
mov eax, dword [ebp - 0x284]
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.00476d2c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0047ebc0
int3