Function at 0x40e430
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 0x49b65d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x290
mov eax, dword [0x4da080]
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 - 0x268], eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x284], eax
lea esi, [eax + 0xc]
mov byte [eax], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea edi, [eax + 0x24]
mov dword [ebp - 4], 1
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov byte [ebp - 4], 2
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 0x40e515
lea ecx, [ebp - 0x120]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e4f1
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
mov ecx, esi
call fcn.00402970
push 0x4b5c68
mov ecx, esi
call fcn.00406440
mov dword [ebp - 0x240], 0
push 8
push str.Path.ini
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0xf
mov byte [ebp - 0x240], 0
mov byte [ebp - 4], 2
call fcn.00402970
mov byte [ebp - 4], 4
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x40e55e
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x240]
push eax
push 0
call fcn.00412cf0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x25c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x24c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x248], 0x10
cmovae eax, dword [ebp - 0x25c]
push eax
push 0
push str.count
push 0x4b5f10
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 0x248]
mov dword [ebp - 0x260], eax
cmp edx, 0x10
jb 0x40e602
mov ecx, dword [ebp - 0x25c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e5f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e954
push edx
push ecx
call fcn.00472dd6
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0xf
mov byte [ebp - 0x25c], 0
cmp edx, 0x10
jb 0x40e65b
mov ecx, dword [ebp - 0x240]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e651
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e954
push edx
push ecx
call fcn.00472dd6
add esp, 8
cmp dword [ebp - 0x260], 0
mov dword [ebp - 0x244], 0
jle 0x40e930
mov dword [ebp - 0x280], 0
push 8
push str.Path.ini
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0xf
mov byte [ebp - 0x280], 0
mov byte [ebp - 4], 2
call fcn.00402970
mov byte [ebp - 4], 8
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x40e6bb
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x280]
push eax
push 0
call fcn.00412cf0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x25c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x24c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x244]
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x29c]
cmp dword [ebp - 0x248], 0x10
cmovae eax, dword [ebp - 0x25c]
mov dword [ebp - 0x264], eax
call fcn.0040a090
cmp dword [eax + 0x14], 0x10
jb 0x40e749
mov eax, dword [eax]
push dword [ebp - 0x264]
lea ecx, [ebp - 0x228]
push 0x104
push ecx
push 0x4b59b3
push eax
push 0x4b5f10
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [ebp - 0x288]
cmp edx, 0x10
jb 0x40e7a6
mov ecx, dword [ebp - 0x29c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e79c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e954
push edx
push ecx
call fcn.00472dd6
add esp, 8
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x248]
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0xf
mov byte [ebp - 0x29c], 0
cmp edx, 0x10
jb 0x40e7ff
mov ecx, dword [ebp - 0x25c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e7f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e954
push edx
push ecx
call fcn.00472dd6
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x26c]
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0xf
mov byte [ebp - 0x25c], 0
cmp edx, 0x10
jb 0x40e858
mov ecx, dword [ebp - 0x280]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e84e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e954
push edx
push ecx
call fcn.00472dd6
add esp, 8
mov dword [ebp - 0x240], 0
lea eax, [ebp - 0x228]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0xf
lea edx, [eax + 1]
mov byte [ebp - 0x240], 0
mov byte [ebp - 4], 2
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e890
sub eax, edx
lea ecx, [ebp - 0x240]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00402970
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x230], 0
je 0x40e8dd
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x240]
push ecx
cmp eax, dword [edi + 8]
je 0x40e8d5
mov ecx, eax
call fcn.00406730
add dword [edi + 4], 0x18
jmp 0x40e8dd
push eax
mov ecx, edi
call fcn.004125c0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x22c]
cmp edx, 0x10
jb 0x40e917
mov ecx, dword [ebp - 0x240]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e90d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e954
push edx
push ecx
call fcn.00472dd6
add esp, 8
mov eax, dword [ebp - 0x244]
inc eax
mov dword [ebp - 0x244], eax
cmp eax, dword [ebp - 0x260]
jl 0x40e672
mov eax, dword [ebp - 0x268]
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.00472d8e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0047a550
int3