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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469962
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.00460a77
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.0040dfd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.0040dfd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.0040dfd0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.0040dfd0
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.0040dff0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41c671
push 0
mov eax, dword [ebp - 0x188]
add eax, 0xd4
push eax
mov ecx, dword [ebp - 0x188]
call fcn.0041cf87
jmp 0x41c68b
push 0
mov ecx, dword [ebp - 0x188]
add ecx, 0xd4
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp + 8]
call fcn.0040dff0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41c701
mov dword [ebp - 0x150], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.0046051a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.0046051a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.0046051a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.0046051a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.00460acc
mov eax, dword [ebp - 0x150]
jmp 0x41cf75
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040dff0
push eax
lea ecx, [ebp - 0x14c]
call fcn.00460b89
lea ecx, [ebp - 0x14c]
call fcn.00460e83
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.00460a43
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.0044ce10
add esp, 0xc
mov edx, dword [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x14c]
call fcn.00460ca6
lea ecx, [ebp - 0x14c]
call fcn.00460da4
push 0x104
push 0
lea ecx, [ebp - 0x110]
push ecx
call fcn.0044ce10
add esp, 0xc
mov edx, dword [0x46f2c8]
push edx
call fcn.0044d290
add esp, 4
push eax
mov eax, dword [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.0044ce70
add esp, 0xc
mov edx, dword [0x46f2c8]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.0044d6c0
add esp, 8
test eax, eax
je 0x41c869
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x158], ecx
mov edx, dword [ebp - 0x158]
push edx
call fcn.00460a6c
add esp, 4
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x15c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.0046051a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.0046051a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.0046051a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.0046051a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.00460acc
mov eax, dword [ebp - 0x15c]
jmp 0x41cf75
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.0044ce10
add esp, 0xc
mov ecx, dword [0x46f2c8]
push ecx
call fcn.0044d290
add esp, 4
push eax
mov esi, dword [ebp - 0x13c]
add esi, dword [ebp - 0x134]
mov edx, dword [0x46f2c8]
push edx
call fcn.0044d290
add esp, 4
sub esi, eax
push esi
lea eax, [ebp - 0x110]
push eax
call fcn.0044ce70
add esp, 0xc
mov ecx, dword [0x46f2c8]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.0044d6c0
add esp, 8
test eax, eax
je 0x41c962
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
push ecx
call fcn.00460a6c
add esp, 4
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x164], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.0046051a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.0046051a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.0046051a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.0046051a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.00460acc
mov eax, dword [ebp - 0x164]
jmp 0x41cf75
mov edx, dword [0x46f2c8]
push edx
call fcn.0044d290
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.0041d0ec
mov dword [ebp - 0x120], eax
mov eax, dword [0x46f2bc]
push eax
push 0x4819d0
mov ecx, dword [ebp - 0x188]
add ecx, 0xd4
push ecx
lea edx, [ebp - 0x168]
push edx
call fcn.004607af
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.004607af
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.00460653
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x16c]
call fcn.0046051a
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x168]
call fcn.0046051a
lea edx, [ebp - 0x124]
push edx
mov ecx, dword [ebp - 0x188]
call fcn.0041c37c
push 0
push 0x1001
lea ecx, [ebp - 0x124]
call fcn.0040dff0
push eax
lea ecx, [ebp - 0x14c]
call fcn.00460b89
push 0
lea ecx, [ebp - 0x14c]
call fcn.00460e57
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x11c]
add ecx, 2
push ecx
lea ecx, [ebp - 0x14c]
call fcn.00460ce0
lea ecx, [ebp - 0x14c]
call fcn.00460da4
lea ecx, [ebp - 0x124]
call fcn.0040dff0
push eax
push 0
mov edx, dword [0x46f278]
push edx
mov eax, dword [0x46f274]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x124]
call fcn.0040dff0
push eax
push 0
mov ecx, dword [0x46f27c]
push ecx
mov edx, dword [0x46f274]
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.00460653
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 0x41cd1d
mov dword [ebp - 0x130], 0
jmp 0x41cb2f
mov ecx, dword [ebp - 0x130]
add ecx, 1
mov dword [ebp - 0x130], ecx
cmp dword [ebp - 0x130], 8
jge 0x41cd18
push 0x104
push 0
lea edx, [ebp - 0x110]
push edx
call fcn.0044ce10
add esp, 0xc
mov eax, dword [ebp - 0x130]
add eax, 1
push eax
mov ecx, dword [0x46f28c]
push ecx
push 0x4819d4
lea edx, [ebp - 0x138]
push edx
call fcn.0045b306
add esp, 0x10
lea ecx, [ebp - 0x114]
call fcn.0040dff0
push eax
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
lea ecx, [ebp - 0x138]
call fcn.0040dff0
push eax
mov ecx, dword [0x46f288]
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 0x4819dc
lea edx, [ebp - 0x124]
push edx
call fcn.0045b306
add esp, 0x10
push 4
mov eax, dword [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x188]
call fcn.0041d0ec
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jg 0x41cc09
mov ecx, dword [ebp - 0x11c]
add ecx, 4
mov dword [ebp - 0x11c], ecx
jmp 0x41cb20
lea edx, [ebp - 0x124]
push edx
mov ecx, dword [ebp - 0x188]
call fcn.0041c37c
push 0
push 0x1001
lea ecx, [ebp - 0x124]
call fcn.0040dff0
push eax
lea ecx, [ebp - 0x14c]
call fcn.00460b89
test eax, eax
jne 0x41ccc9
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
push ecx
call fcn.00460a6c
add esp, 4
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x174], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.0046051a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.0046051a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.0046051a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.0046051a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.00460acc
mov eax, dword [ebp - 0x174]
jmp 0x41cf75
push 0
lea ecx, [ebp - 0x14c]
call fcn.00460e57
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x11c]
add eax, 4
push eax
lea ecx, [ebp - 0x14c]
call fcn.00460ce0
lea ecx, [ebp - 0x14c]
call fcn.00460da4
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x11c]
lea eax, [edx + ecx + 4]
mov dword [ebp - 0x11c], eax
jmp 0x41cb20
jmp 0x41cef2
cmp dword [ebp - 0x128], 1
jne 0x41cef2
push 0x104
push 0
lea ecx, [ebp - 0x110]
push ecx
call fcn.0044ce10
add esp, 0xc
mov edx, dword [0x46f29c]
push edx
push 0x4819e4
lea eax, [ebp - 0x138]
push eax
call fcn.0045b306
add esp, 0xc
lea ecx, [ebp - 0x114]
call fcn.0040dff0
push eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0
lea ecx, [ebp - 0x138]
call fcn.0040dff0
push eax
mov edx, dword [0x46f2a0]
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 0x4819e8
lea eax, [ebp - 0x124]
push eax
call fcn.0045b306
add esp, 0x10
push 4
mov ecx, dword [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x188]
call fcn.0041d0ec
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jg 0x41cde8
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.0041c37c
push 0
push 0x1001
lea ecx, [ebp - 0x124]
call fcn.0040dff0
push eax
lea ecx, [ebp - 0x14c]
call fcn.00460b89
test eax, eax
jne 0x41cea8
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x178], ecx
mov edx, dword [ebp - 0x178]
push edx
call fcn.00460a6c
add esp, 4
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x17c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.0046051a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.0046051a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.0046051a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.0046051a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.00460acc
mov eax, dword [ebp - 0x17c]
jmp 0x41cf75
push 0
lea ecx, [ebp - 0x14c]
call fcn.00460e57
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x11c]
add ecx, 4
push ecx
lea ecx, [ebp - 0x14c]
call fcn.00460ce0
lea ecx, [ebp - 0x14c]
call fcn.00460da4
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.00460a6c
add esp, 4
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x184], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.0046051a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.0046051a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.0046051a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.0046051a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.00460acc
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