Function at 0x411510
Capabilities:
Access peb ldr_data
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 0x49d4cd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c0
mov eax, dword [0x4dc100]
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 - 0x284], eax
lea esi, [eax + 0x18]
mov byte [eax], 0
xorps xmm0, xmm0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
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 + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
mov byte [ebp - 4], 1
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
lea eax, [ebp - 0x120]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x411638
lea ecx, [ebp - 0x120]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4115e4
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
mov ecx, esi
call fcn.00402690
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x411622
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x41161a
mov eax, dword [esi]
mov word [eax + ecx], 0x5c
jmp 0x411638
push 1
push 0x4d1398
push dword [ebp - 0x284]
mov ecx, esi
push 1
call fcn.004094f0
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x28c], 0
push str.Path.ini
lea ecx, [ebp - 0x29c]
mov dword [ebp - 0x288], 0
movups xmmword [ebp - 0x29c], xmm0
call fcn.00409650
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 0xf
mov eax, dword [esi + 0x10]
jbe 0x411677
mov esi, dword [esi]
push eax
push esi
push 0
lea ecx, [ebp - 0x29c]
call fcn.004154c0
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 0x4d1740
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x24c]
mov esi, eax
mov dword [ebp - 0x248], esi
cmp ecx, 0xf
jbe 0x411735
mov edx, dword [ebp - 0x260]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41172b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a6f
push ecx
push edx
call fcn.00474928
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x288]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
cmp ecx, 0xf
jbe 0x41178e
mov edx, dword [ebp - 0x29c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x411784
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a6f
push ecx
push edx
call fcn.00474928
add esp, 8
xor edi, edi
test esi, esi
jle 0x411a4b
mov eax, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [ebp - 0x244]
mov dword [ebp - 0x280], eax
nop dword [eax]
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x2a4], 0
push str.Path.ini
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 0x2a0], 0
movups xmmword [ebp - 0x2b4], xmm0
call fcn.00409650
lea eax, [esi + 0x18]
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x4117f2
mov eax, dword [eax]
push ecx
push eax
push 0
lea ecx, [ebp - 0x2b4]
call fcn.004154c0
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 ecx, [ebp - 0x2cc]
mov dword [eax + 0x10], 0
mov edx, edi
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x278]
cmp dword [ebp - 0x264], 0xf
cmova eax, dword [ebp - 0x278]
mov dword [ebp - 0x27c], eax
call fcn.0040e460
cmp dword [eax + 0x14], 0xf
jbe 0x41187a
mov eax, dword [eax]
push dword [ebp - 0x27c]
lea ecx, [ebp - 0x228]
push 0x104
push ecx
push 0x4d1109
push eax
push 0x4d1740
call dword [ebp - 0x280]
mov ecx, dword [ebp - 0x2b8]
cmp ecx, 0xf
jbe 0x4118d7
mov edx, dword [ebp - 0x2cc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4118cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a6f
push ecx
push edx
call fcn.00474928
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x264]
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2b8], 0xf
mov byte [ebp - 0x2cc], 0
cmp ecx, 0xf
jbe 0x411930
mov edx, dword [ebp - 0x278]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x411926
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a6f
push ecx
push edx
call fcn.00474928
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2a0]
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], 0
cmp ecx, 0xf
jbe 0x411989
mov edx, dword [ebp - 0x2b4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41197f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a6f
push ecx
push edx
call fcn.00474928
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 0x4119b0
sub eax, edx
lea ecx, [ebp - 0x240]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00409650
mov byte [ebp - 4], 5
cmp dword [ebp - 0x230], 0
je 0x411a04
mov eax, dword [esi + 0x34]
lea ecx, [ebp - 0x240]
push ecx
cmp eax, dword [esi + 0x38]
je 0x4119f5
mov ecx, eax
call fcn.00406580
add dword [esi + 0x34], 0x18
jmp 0x4119fe
push eax
lea ecx, [esi + 0x30]
call fcn.00416900
mov esi, dword [ebp - 0x244]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x22c]
cmp ecx, 0xf
jbe 0x411a3e
mov edx, dword [ebp - 0x240]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x411a34
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a6f
push ecx
push edx
call fcn.00474928
add esp, 8
inc edi
cmp edi, dword [ebp - 0x248]
jl 0x4117b0
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.004748e0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0047ce51
int3