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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459029
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.004508ba
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.00404cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.00404cc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.00404cc0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.00404cc0
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, 0xd0
call fcn.00404d20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x412875
push 0
mov eax, dword [ebp - 0x188]
add eax, 0xd0
push eax
mov ecx, dword [ebp - 0x188]
call fcn.0041318b
jmp 0x41288f
push 0
mov ecx, dword [ebp - 0x188]
add ecx, 0xd0
call fcn.00404d20
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp + 8]
call fcn.00404d20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x412905
mov dword [ebp - 0x150], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.0045035d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.0045035d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.0045035d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.0045035d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.0045090f
mov eax, dword [ebp - 0x150]
jmp 0x413179
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.00404d20
push eax
lea ecx, [ebp - 0x14c]
call fcn.004509cc
lea ecx, [ebp - 0x14c]
call fcn.00450cc6
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.00450886
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.0043d9d0
add esp, 0xc
mov edx, dword [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x14c]
call fcn.00450ae9
lea ecx, [ebp - 0x14c]
call fcn.00450be7
push 0x104
push 0
lea ecx, [ebp - 0x110]
push ecx
call fcn.0043d9d0
add esp, 0xc
mov edx, dword [0x45dab8]
push edx
call fcn.0043de60
add esp, 4
push eax
mov eax, dword [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.0043da30
add esp, 0xc
mov edx, dword [0x45dab8]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.0043e290
add esp, 8
test eax, eax
je 0x412a6d
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x158], ecx
mov edx, dword [ebp - 0x158]
push edx
call fcn.004508af
add esp, 4
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x15c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.0045035d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.0045035d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.0045035d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.0045035d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.0045090f
mov eax, dword [ebp - 0x15c]
jmp 0x413179
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.0043d9d0
add esp, 0xc
mov ecx, dword [0x45dab8]
push ecx
call fcn.0043de60
add esp, 4
push eax
mov esi, dword [ebp - 0x13c]
add esi, dword [ebp - 0x134]
mov edx, dword [0x45dab8]
push edx
call fcn.0043de60
add esp, 4
sub esi, eax
push esi
lea eax, [ebp - 0x110]
push eax
call fcn.0043da30
add esp, 0xc
mov ecx, dword [0x45dab8]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.0043e290
add esp, 8
test eax, eax
je 0x412b66
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
push ecx
call fcn.004508af
add esp, 4
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x164], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.0045035d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.0045035d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.0045035d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.0045035d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.0045090f
mov eax, dword [ebp - 0x164]
jmp 0x413179
mov edx, dword [0x45dab8]
push edx
call fcn.0043de60
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.004132f0
mov dword [ebp - 0x120], eax
mov eax, dword [0x45daac]
push eax
push 0x46d9a4
mov ecx, dword [ebp - 0x188]
add ecx, 0xd0
push ecx
lea edx, [ebp - 0x168]
push edx
call fcn.004505f2
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.004505f2
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.00450496
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x16c]
call fcn.0045035d
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x168]
call fcn.0045035d
lea edx, [ebp - 0x124]
push edx
mov ecx, dword [ebp - 0x188]
call fcn.00412580
push 0
push 0x1001
lea ecx, [ebp - 0x124]
call fcn.00404d20
push eax
lea ecx, [ebp - 0x14c]
call fcn.004509cc
push 0
lea ecx, [ebp - 0x14c]
call fcn.00450c9a
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x11c]
add ecx, 2
push ecx
lea ecx, [ebp - 0x14c]
call fcn.00450b23
lea ecx, [ebp - 0x14c]
call fcn.00450be7
lea ecx, [ebp - 0x124]
call fcn.00404d20
push eax
push 0
mov edx, dword [0x45da70]
push edx
mov eax, dword [0x45da6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x124]
call fcn.00404d20
push eax
push 0
mov ecx, dword [0x45da74]
push ecx
mov edx, dword [0x45da6c]
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.00450496
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 0x412f21
mov dword [ebp - 0x130], 0
jmp 0x412d33
mov ecx, dword [ebp - 0x130]
add ecx, 1
mov dword [ebp - 0x130], ecx
cmp dword [ebp - 0x130], 4
jge 0x412f1c
push 0x104
push 0
lea edx, [ebp - 0x110]
push edx
call fcn.0043d9d0
add esp, 0xc
mov eax, dword [ebp - 0x130]
add eax, 1
push eax
mov ecx, dword [0x45da84]
push ecx
push 0x46d9a8
lea edx, [ebp - 0x138]
push edx
call fcn.0044b146
add esp, 0x10
lea ecx, [ebp - 0x114]
call fcn.00404d20
push eax
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
lea ecx, [ebp - 0x138]
call fcn.00404d20
push eax
mov ecx, dword [0x45da80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax + 0xd0]
push ecx
push 0x46d9b0
lea edx, [ebp - 0x124]
push edx
call fcn.0044b146
add esp, 0x10
push 4
mov eax, dword [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x188]
call fcn.004132f0
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jg 0x412e0d
mov ecx, dword [ebp - 0x11c]
add ecx, 4
mov dword [ebp - 0x11c], ecx
jmp 0x412d24
lea edx, [ebp - 0x124]
push edx
mov ecx, dword [ebp - 0x188]
call fcn.00412580
push 0
push 0x1001
lea ecx, [ebp - 0x124]
call fcn.00404d20
push eax
lea ecx, [ebp - 0x14c]
call fcn.004509cc
test eax, eax
jne 0x412ecd
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
push ecx
call fcn.004508af
add esp, 4
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x174], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.0045035d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.0045035d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.0045035d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.0045035d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.0045090f
mov eax, dword [ebp - 0x174]
jmp 0x413179
push 0
lea ecx, [ebp - 0x14c]
call fcn.00450c9a
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x11c]
add eax, 4
push eax
lea ecx, [ebp - 0x14c]
call fcn.00450b23
lea ecx, [ebp - 0x14c]
call fcn.00450be7
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x11c]
lea eax, [edx + ecx + 4]
mov dword [ebp - 0x11c], eax
jmp 0x412d24
jmp 0x4130f6
cmp dword [ebp - 0x128], 1
jne 0x4130f6
push 0x104
push 0
lea ecx, [ebp - 0x110]
push ecx
call fcn.0043d9d0
add esp, 0xc
mov edx, dword [0x45da94]
push edx
push 0x46d9b8
lea eax, [ebp - 0x138]
push eax
call fcn.0044b146
add esp, 0xc
lea ecx, [ebp - 0x114]
call fcn.00404d20
push eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0
lea ecx, [ebp - 0x138]
call fcn.00404d20
push eax
mov edx, dword [0x45da98]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x188]
mov edx, dword [ecx + 0xd0]
push edx
push 0x46d9bc
lea eax, [ebp - 0x124]
push eax
call fcn.0044b146
add esp, 0x10
push 4
mov ecx, dword [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x188]
call fcn.004132f0
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jg 0x412fec
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.00412580
push 0
push 0x1001
lea ecx, [ebp - 0x124]
call fcn.00404d20
push eax
lea ecx, [ebp - 0x14c]
call fcn.004509cc
test eax, eax
jne 0x4130ac
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x178], ecx
mov edx, dword [ebp - 0x178]
push edx
call fcn.004508af
add esp, 4
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x17c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.0045035d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.0045035d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.0045035d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.0045035d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.0045090f
mov eax, dword [ebp - 0x17c]
jmp 0x413179
push 0
lea ecx, [ebp - 0x14c]
call fcn.00450c9a
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x11c]
add ecx, 4
push ecx
lea ecx, [ebp - 0x14c]
call fcn.00450b23
lea ecx, [ebp - 0x14c]
call fcn.00450be7
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.004508af
add esp, 4
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x184], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.0045035d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.0045035d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.0045035d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.0045035d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.0045090f
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