Function at 0x479920
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb1c
mov dword [ebp - 0xb18], ecx
mov dword [ebp - 0xb14], 1
cmp dword [ebp + 8], 0
je 0x479973
mov eax, dword [ebp + 8]
push eax
call fcn.0054ce70
add esp, 4
test eax, eax
je 0x479973
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x479973
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.0054be90
add esp, 8
jmp 0x479987
push 0x6784a8
lea ecx, [ebp - 0x104]
push ecx
call fcn.0054be90
add esp, 8
push 0x6785ac
lea edx, [ebp - 0x310]
push edx
call fcn.0054be90
add esp, 8
push 0x5eddc0
lea eax, [ebp - 0x208]
push eax
call fcn.0054be90
add esp, 8
mov ecx, 1
test ecx, ecx
je 0x479d8e
mov dword [ebp - 0x20c], 0
jmp 0x4799d7
mov edx, dword [ebp - 0x20c]
add edx, 1
mov dword [ebp - 0x20c], edx
cmp dword [ebp - 0x20c], 0x20
jge 0x479d5d
mov eax, dword [ebp - 0x20c]
shl eax, 5
mov ecx, dword [eax + 0x5adfd0]
mov dword [ebp - 0xb1c], ecx
cmp dword [ebp - 0xb1c], 9
ja case.0x479a0c.3
mov edx, dword [ebp - 0xb1c]
jmp dword [edx*4 + 0x479d9a]
lea eax, [ebp - 0x104]
push eax
push 0
mov ecx, dword [ebp - 0x20c]
shl ecx, 5
mov edx, dword [ecx + 0x5adfcc]
push edx
mov eax, dword [ebp - 0x20c]
shl eax, 5
mov ecx, dword [eax + 0x5adfc8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 0x20c]
shl edx, 5
mov ecx, dword [edx + 0x5adfd4]
mov dword [ecx], eax
jmp case.0x479a0c.3
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp - 0x20c]
shl eax, 5
mov ecx, dword [eax + 0x5adfdc]
push ecx
mov edx, dword [ebp - 0x20c]
shl edx, 5
mov eax, dword [edx + 0x5adfe0]
push eax
mov ecx, dword [ebp - 0x20c]
shl ecx, 5
mov edx, dword [ecx + 0x5adfe4]
push edx
mov eax, dword [ebp - 0x20c]
shl eax, 5
mov ecx, dword [eax + 0x5adfcc]
push ecx
mov edx, dword [ebp - 0x20c]
shl edx, 5
mov eax, dword [edx + 0x5adfc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp case.0x479a0c.3
lea ecx, [ebp - 0x104]
push ecx
push 0x800
lea edx, [ebp - 0xb10]
push edx
mov eax, dword [ebp - 0x20c]
shl eax, 5
mov ecx, dword [eax + 0x5adfe4]
push ecx
mov edx, dword [ebp - 0x20c]
shl edx, 5
mov eax, dword [edx + 0x5adfcc]
push eax
mov ecx, dword [ebp - 0x20c]
shl ecx, 5
mov edx, dword [ecx + 0x5adfc8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0xb10]
push eax
call fcn.00529529
add esp, 4
mov ecx, dword [ebp - 0x20c]
shl ecx, 5
mov edx, dword [ecx + 0x5adfd4]
mov dword [edx], eax
jmp case.0x479a0c.3
lea eax, [ebp - 0x310]
push eax
push 0
mov ecx, dword [ebp - 0x20c]
shl ecx, 5
mov edx, dword [ecx + 0x5adfcc]
push edx
mov eax, dword [ebp - 0x20c]
shl eax, 5
mov ecx, dword [eax + 0x5adfc8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 0x20c]
shl edx, 5
mov ecx, dword [edx + 0x5adfd4]
mov dword [ecx], eax
jmp case.0x479a0c.3
lea edx, [ebp - 0x310]
push edx
mov eax, dword [ebp - 0x20c]
shl eax, 5
mov ecx, dword [eax + 0x5adfdc]
push ecx
mov edx, dword [ebp - 0x20c]
shl edx, 5
mov eax, dword [edx + 0x5adfe0]
push eax
mov ecx, dword [ebp - 0x20c]
shl ecx, 5
mov edx, dword [ecx + 0x5adfe4]
push edx
mov eax, dword [ebp - 0x20c]
shl eax, 5
mov ecx, dword [eax + 0x5adfcc]
push ecx
mov edx, dword [ebp - 0x20c]
shl edx, 5
mov eax, dword [edx + 0x5adfc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp case.0x479a0c.3
lea ecx, [ebp - 0x310]
push ecx
push 0x800
lea edx, [ebp - 0xb10]
push edx
mov eax, dword [ebp - 0x20c]
shl eax, 5
mov ecx, dword [eax + 0x5adfe4]
push ecx
mov edx, dword [ebp - 0x20c]
shl edx, 5
mov eax, dword [edx + 0x5adfcc]
push eax
mov ecx, dword [ebp - 0x20c]
shl ecx, 5
mov edx, dword [ecx + 0x5adfc8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0xb10]
push eax
call fcn.00529529
add esp, 4
mov ecx, dword [ebp - 0x20c]
shl ecx, 5
mov edx, dword [ecx + 0x5adfd4]
mov dword [edx], eax
jmp case.0x479a0c.3
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp - 0x20c]
shl ecx, 5
mov edx, dword [ecx + 0x5adfd8]
push edx
mov eax, dword [ebp - 0x20c]
shl eax, 5
mov ecx, dword [eax + 0x5adfcc]
push ecx
mov edx, dword [ebp - 0x20c]
shl edx, 5
mov eax, dword [edx + 0x5adfc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x20c]
shl ecx, 5
mov edx, dword [ecx + 0x5adfd4]
mov dword [edx], eax
jmp case.0x479a0c.3
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp - 0x20c]
shl ecx, 5
mov edx, dword [ecx + 0x5adfdc]
push edx
mov eax, dword [ebp - 0x20c]
shl eax, 5
mov ecx, dword [eax + 0x5adfe0]
push ecx
mov edx, dword [ebp - 0x20c]
shl edx, 5
mov eax, dword [edx + 0x5adfe4]
push eax
mov ecx, dword [ebp - 0x20c]
shl ecx, 5
mov edx, dword [ecx + 0x5adfcc]
push edx
mov eax, dword [ebp - 0x20c]
shl eax, 5
mov ecx, dword [eax + 0x5adfc8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp case.0x479a0c.3
lea edx, [ebp - 0x208]
push edx
push 0x800
lea eax, [ebp - 0xb10]
push eax
mov ecx, dword [ebp - 0x20c]
shl ecx, 5
mov edx, dword [ecx + 0x5adfe4]
push edx
mov eax, dword [ebp - 0x20c]
shl eax, 5
mov ecx, dword [eax + 0x5adfcc]
push ecx
mov edx, dword [ebp - 0x20c]
shl edx, 5
mov eax, dword [edx + 0x5adfc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0xb10]
push ecx
call fcn.00529529
add esp, 4
mov edx, dword [ebp - 0x20c]
shl edx, 5
mov ecx, dword [edx + 0x5adfd4]
mov dword [ecx], eax
jmp 0x4799c8
lea edx, [ebp - 0x310]
push edx
push 0xffffffffffffffff
push 0x5b1d74
push 0x5b1d80
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x67ae24], eax
cmp dword [0x67ae24], 0xffffffff
jne 0x479d8e
mov dword [0x67ae24], 0x1e
mov eax, dword [ebp - 0xb14]
mov esp, ebp
pop ebp
ret 4