Function at 0x40e520
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 0x49b18d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b8
mov eax, dword [0x4d90c0]
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 0x40e634
lea ecx, [ebp - 0x120]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e5e0
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
mov ecx, esi
call fcn.004024f0
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x40e61e
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x40e616
mov eax, dword [esi]
mov word [eax + ecx], 0x5c
jmp 0x40e634
push 1
push 0x4ce200
push dword [ebp - 0x280]
mov ecx, esi
push 1
call fcn.00407f60
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.004080c0
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 0xf
mov eax, dword [esi + 0x10]
jbe 0x40e673
mov esi, dword [esi]
push eax
push esi
push 0
lea ecx, [ebp - 0x298]
call fcn.00412a60
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 0x4ce3d0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x24c]
mov esi, eax
mov dword [ebp - 0x248], esi
cmp ecx, 0xf
jbe 0x40e731
mov edx, dword [ebp - 0x260]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e727
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ea5f
push ecx
push edx
call fcn.00472269
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 0x40e78a
mov edx, dword [ebp - 0x298]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e780
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ea5f
push ecx
push edx
call fcn.00472269
add esp, 8
xor edi, edi
test esi, esi
jle 0x40ea3b
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.004080c0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x244]
add eax, 0xc
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x40e7e8
mov eax, dword [eax]
push ecx
push eax
push 0
lea ecx, [ebp - 0x2b0]
call fcn.00412a60
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.00409d00
cmp dword [eax + 0x14], 0xf
jbe 0x40e86a
mov eax, dword [eax]
push esi
push 0x104
lea ecx, [ebp - 0x228]
push ecx
push 0x4cdf71
push eax
push 0x4ce3d0
call dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x2b4]
cmp ecx, 0xf
jbe 0x40e8c2
mov edx, dword [ebp - 0x2c8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e8b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ea5f
push ecx
push edx
call fcn.00472269
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 0x40e91b
mov edx, dword [ebp - 0x278]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e911
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ea5f
push ecx
push edx
call fcn.00472269
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 0x40e974
mov edx, dword [ebp - 0x2b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e96a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ea5f
push ecx
push edx
call fcn.00472269
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 0x40e9a0
sub eax, edx
lea ecx, [ebp - 0x240]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.004080c0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x230], 0
je 0x40e9f4
mov esi, dword [ebp - 0x244]
lea ecx, [ebp - 0x240]
push ecx
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x2c]
je 0x40e9eb
mov ecx, eax
call fcn.004061a0
add dword [esi + 0x28], 0x18
jmp 0x40e9f4
push eax
lea ecx, [esi + 0x24]
call fcn.00413f80
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x22c]
cmp ecx, 0xf
jbe 0x40ea2e
mov edx, dword [ebp - 0x240]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ea24
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ea5f
push ecx
push edx
call fcn.00472269
add esp, 8
inc edi
cmp edi, dword [ebp - 0x248]
jl 0x40e7a0
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.00472221
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00479f90
int3