Function at 0x41cea2
Capabilities:
Check if file exists
Create directory
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b632
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18c
push esi
push edi
mov dword [ebp - 0x188], ecx
lea ecx, [ebp - 0x14c]
call fcn.00462747
mov dword [ebp - 4], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x128], 0
lea ecx, [ebp - 0x124]
call fcn.0040e500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.0040e500
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.0040e500
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.0040e500
mov byte [ebp - 4], 4
mov byte [ebp - 0x110], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x188]
add ecx, 0xd4
call fcn.0040e520
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41cfac
push 0
mov eax, dword [ebp - 0x188]
add eax, 0xd4
push eax
mov ecx, dword [ebp - 0x188]
call fcn.0041d8c2
jmp 0x41cfc6
push 0
mov ecx, dword [ebp - 0x188]
add ecx, 0xd4
call fcn.0040e520
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp + 8]
call fcn.0040e520
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41d03c
mov dword [ebp - 0x150], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.004621ea
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.004621ea
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.004621ea
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.004621ea
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.0046279c
mov eax, dword [ebp - 0x150]
jmp 0x41d8b0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040e520
push eax
lea ecx, [ebp - 0x14c]
call fcn.00462859
lea ecx, [ebp - 0x14c]
call fcn.00462b53
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.00462713
add esp, 4
mov dword [ebp - 0x154], eax
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x13c], edx
mov eax, dword [ebp - 0x134]
push eax
push 0
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.0044db80
add esp, 0xc
mov edx, dword [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x14c]
call fcn.00462976
lea ecx, [ebp - 0x14c]
call fcn.00462a74
push 0x104
push 0
lea ecx, [ebp - 0x110]
push ecx
call fcn.0044db80
add esp, 0xc
mov edx, dword [0x4713c0]
push edx
call fcn.0044e000
add esp, 4
push eax
mov eax, dword [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.0044dbe0
add esp, 0xc
mov edx, dword [0x4713c0]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.0044e430
add esp, 8
test eax, eax
je 0x41d1a4
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x158], ecx
mov edx, dword [ebp - 0x158]
push edx
call fcn.0046273c
add esp, 4
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x15c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.004621ea
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.004621ea
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.004621ea
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.004621ea
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.0046279c
mov eax, dword [ebp - 0x15c]
jmp 0x41d8b0
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.0044db80
add esp, 0xc
mov ecx, dword [0x4713c0]
push ecx
call fcn.0044e000
add esp, 4
push eax
mov esi, dword [ebp - 0x13c]
add esi, dword [ebp - 0x134]
mov edx, dword [0x4713c0]
push edx
call fcn.0044e000
add esp, 4
sub esi, eax
push esi
lea eax, [ebp - 0x110]
push eax
call fcn.0044dbe0
add esp, 0xc
mov ecx, dword [0x4713c0]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.0044e430
add esp, 8
test eax, eax
je 0x41d29d
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
push ecx
call fcn.0046273c
add esp, 4
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x164], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.004621ea
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.004621ea
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.004621ea
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.004621ea
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.0046279c
mov eax, dword [ebp - 0x164]
jmp 0x41d8b0
mov edx, dword [0x4713c0]
push edx
call fcn.0044e000
add esp, 4
mov ecx, dword [ebp - 0x13c]
add ecx, eax
mov dword [ebp - 0x11c], ecx
push 2
mov edx, dword [ebp - 0x11c]
push edx
mov ecx, dword [ebp - 0x188]
call fcn.0041da27
mov dword [ebp - 0x120], eax
mov eax, dword [0x4713b4]
push eax
push 0x483b0c
mov ecx, dword [ebp - 0x188]
add ecx, 0xd4
push ecx
lea edx, [ebp - 0x168]
push edx
call fcn.0046247f
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x190], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x190]
push ecx
lea edx, [ebp - 0x16c]
push edx
call fcn.0046247f
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x194]
mov dword [ebp - 0x198], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x198]
push ecx
lea ecx, [ebp - 0x124]
call fcn.00462323
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x16c]
call fcn.004621ea
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x168]
call fcn.004621ea
lea edx, [ebp - 0x124]
push edx
mov ecx, dword [ebp - 0x188]
call fcn.0041ccb7
push 0
push 0x1001
lea ecx, [ebp - 0x124]
call fcn.0040e520
push eax
lea ecx, [ebp - 0x14c]
call fcn.00462859
push 0
lea ecx, [ebp - 0x14c]
call fcn.00462b27
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x11c]
add ecx, 2
push ecx
lea ecx, [ebp - 0x14c]
call fcn.004629b0
lea ecx, [ebp - 0x14c]
call fcn.00462a74
lea ecx, [ebp - 0x124]
call fcn.0040e520
push eax
push 0
mov edx, dword [0x471370]
push edx
mov eax, dword [0x47136c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x124]
call fcn.0040e520
push eax
push 0
mov ecx, dword [0x471374]
push ecx
mov edx, dword [0x47136c]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x114]
call fcn.00462323
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x11c]
lea eax, [edx + ecx + 2]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x128], 0
jne 0x41d658
mov dword [ebp - 0x130], 0
jmp 0x41d46a
mov ecx, dword [ebp - 0x130]
add ecx, 1
mov dword [ebp - 0x130], ecx
cmp dword [ebp - 0x130], 8
jge 0x41d653
push 0x104
push 0
lea edx, [ebp - 0x110]
push edx
call fcn.0044db80
add esp, 0xc
mov eax, dword [ebp - 0x130]
add eax, 1
push eax
mov ecx, dword [0x471384]
push ecx
push 0x483b10
lea edx, [ebp - 0x138]
push edx
call fcn.0045cfab
add esp, 0x10
lea ecx, [ebp - 0x114]
call fcn.0040e520
push eax
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
lea ecx, [ebp - 0x138]
call fcn.0040e520
push eax
mov ecx, dword [0x471380]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax + 0xd4]
push ecx
push 0x483b18
lea edx, [ebp - 0x124]
push edx
call fcn.0045cfab
add esp, 0x10
push 4
mov eax, dword [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x188]
call fcn.0041da27
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jg 0x41d544
mov ecx, dword [ebp - 0x11c]
add ecx, 4
mov dword [ebp - 0x11c], ecx
jmp 0x41d45b
lea edx, [ebp - 0x124]
push edx
mov ecx, dword [ebp - 0x188]
call fcn.0041ccb7
push 0
push 0x1001
lea ecx, [ebp - 0x124]
call fcn.0040e520
push eax
lea ecx, [ebp - 0x14c]
call fcn.00462859
test eax, eax
jne 0x41d604
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
push ecx
call fcn.0046273c
add esp, 4
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x174], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.004621ea
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.004621ea
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.004621ea
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.004621ea
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.0046279c
mov eax, dword [ebp - 0x174]
jmp 0x41d8b0
push 0
lea ecx, [ebp - 0x14c]
call fcn.00462b27
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x11c]
add eax, 4
push eax
lea ecx, [ebp - 0x14c]
call fcn.004629b0
lea ecx, [ebp - 0x14c]
call fcn.00462a74
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x11c]
lea eax, [edx + ecx + 4]
mov dword [ebp - 0x11c], eax
jmp 0x41d45b
jmp 0x41d82d
cmp dword [ebp - 0x128], 1
jne 0x41d82d
push 0x104
push 0
lea ecx, [ebp - 0x110]
push ecx
call fcn.0044db80
add esp, 0xc
mov edx, dword [0x471394]
push edx
push 0x483b20
lea eax, [ebp - 0x138]
push eax
call fcn.0045cfab
add esp, 0xc
lea ecx, [ebp - 0x114]
call fcn.0040e520
push eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0
lea ecx, [ebp - 0x138]
call fcn.0040e520
push eax
mov edx, dword [0x471398]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x188]
mov edx, dword [ecx + 0xd4]
push edx
push 0x483b24
lea eax, [ebp - 0x124]
push eax
call fcn.0045cfab
add esp, 0x10
push 4
mov ecx, dword [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x188]
call fcn.0041da27
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jg 0x41d723
mov edx, dword [ebp - 0x11c]
add edx, 4
mov dword [ebp - 0x11c], edx
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x188]
call fcn.0041ccb7
push 0
push 0x1001
lea ecx, [ebp - 0x124]
call fcn.0040e520
push eax
lea ecx, [ebp - 0x14c]
call fcn.00462859
test eax, eax
jne 0x41d7e3
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x178], ecx
mov edx, dword [ebp - 0x178]
push edx
call fcn.0046273c
add esp, 4
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x17c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.004621ea
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.004621ea
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.004621ea
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.004621ea
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.0046279c
mov eax, dword [ebp - 0x17c]
jmp 0x41d8b0
push 0
lea ecx, [ebp - 0x14c]
call fcn.00462b27
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x11c]
add ecx, 4
push ecx
lea ecx, [ebp - 0x14c]
call fcn.004629b0
lea ecx, [ebp - 0x14c]
call fcn.00462a74
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 0x11c]
lea ecx, [eax + edx + 4]
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x180], edx
mov eax, dword [ebp - 0x180]
push eax
call fcn.0046273c
add esp, 4
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x184], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.004621ea
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.004621ea
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.004621ea
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.004621ea
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.0046279c
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4