Function at 0x47975b
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x290
mov eax, 0x483c29
call fcn.00482f11
mov dword [ebp - 0x280], edx
mov dword [ebp - 0x278], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x27c], eax
xor ecx, ecx
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x254]
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
xor eax, eax
mov word [ebp - 0x254], ax
or dword [ebp - 4], 0xffffffff
mov ebx, 0x100
mov byte [ebp - 0x219], cl
mov edi, ebx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x234]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
xor eax, eax
mov word [ebp - 0x234], ax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
push 0xf
push 0x465b78
call fcn.004706b4
test al, al
je 0x4798c3
push ecx
push ebx
jmp 0x479936
push dword [ebp - 0x23c]
push edi
push dword [ebp - 0x25c]
push 0
push 0x465b98
push 0x465bb0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x274], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jne 0x479923
cmp byte [ebp - 0x219], 0
jne 0x4798c6
push 0x104
lea eax, [ebp - 0x218]
mov byte [ebp - 0x219], 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x270], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x479923
cmp eax, 0x104
je 0x479923
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x29c]
call fcn.0047a0e4
mov eax, dword [ebp - 0x29c]
mov ecx, dword [ebp - 0x294]
sub ecx, eax
mov dword [ebp - 0x288], eax
sar ecx, 1
lea eax, [ebp - 0x288]
push ecx
push ecx
mov dword [ebp - 0x284], ecx
lea ecx, [ebp - 0x23c]
push eax
call fcn.0047a28f
test eax, eax
jns 0x479934
push 0xe
pop esi
mov dword [ebp - 4], 0x14
lea eax, [ebp - 0x234]
mov edi, 0x401a5f
cmp dword [ebp - 0x23c], eax
je 0x4798ee
push edi
push dword [ebp - 0x23c]
call fcn.004834ca
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0x51
lea eax, [ebp - 0x254]
cmp dword [ebp - 0x25c], eax
je 0x479915
push edi
push dword [ebp - 0x25c]
call fcn.004834ca
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00482ec0
ret 4
test esi, esi
jne 0x4798c6
lea eax, [edi - 1]
cmp dword [ebp - 0x274], eax
jne 0x47994e
add edi, edi
push ecx
push edi
lea ecx, [ebp - 0x25c]
call fcn.0047075c
test al, al
jne 0x4797f7
jmp 0x4798c3
mov esi, dword [0x4aaad4]
test esi, esi
je 0x47996f
push dword [ebp - 0x23c]
mov ecx, esi
push 0x465bd4
call dword [0x4ab2d4]
call esi
pop ecx
pop ecx
mov dword [ebp - 4], 0x1a
lea eax, [ebp - 0x234]
mov edi, 0x401a5f
cmp dword [ebp - 0x23c], eax
je 0x479997
push edi
push dword [ebp - 0x23c]
call fcn.004834ca
pop ecx
pop ecx
mov dword [ebp - 4], 0x1d
lea eax, [ebp - 0x224]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
xor eax, eax
mov word [ebp - 0x224], ax
or dword [ebp - 4], 0xffffffff
push ecx
push ebx
lea ecx, [ebp - 0x22c]
call fcn.0047075c
test al, al
je 0x479b6c
mov eax, dword [ebp - 0x278]
push dword [eax + 0x30]
push dword [eax + 0x20]
push dword [eax + 0x10]
push dword [eax]
push dword [ebp - 0x25c]
push 0x465bf0
push ebx
push dword [ebp - 0x22c]
call fcn.00467c0f
add esp, 0x20
add ebx, ebx
cmp eax, 0x8007007a
je 0x4799bd
test eax, eax
je 0x479a11
push 0x57
jmp 0x479b6e
mov ecx, dword [ebp - 0x22c]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x479a1c
sub ecx, edx
sar ecx, 1
push ecx
push ecx
lea ecx, [ebp - 0x22c]
call fcn.0047075c
lea eax, [ebp - 0x264]
mov byte [ebp - 0x264], bl
mov dword [ebp - 0x26c], eax
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x228]
sub eax, dword [ebp - 0x22c]
sar eax, 1
push eax
push dword [ebp - 0x22c]
call fcn.0047947b
mov esi, eax
test esi, esi
jne 0x479b4e
mov edx, dword [ebp - 0x26c]
lea eax, [ebp - 0x244]
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], eax
mov byte [ebp - 0x244], bl
call fcn.004796f3
lea ecx, [ebp - 0x24c]
push dword [eax + 4]
push dword [eax]
call fcn.0047897d
test al, al
mov eax, dword [ebp - 0x24c]
jne 0x479ac1
push 0xe
jmp 0x479b0d
mov ecx, dword [ebp - 0x248]
cmp eax, ecx
jne 0x479ad2
mov esi, 0x5b9
jmp 0x479b3b
mov esi, dword [0x4aaad4]
test esi, esi
je 0x479afa
push eax
push 0x465cdc
mov ecx, esi
call dword [0x4ab2d4]
call esi
mov eax, dword [ebp - 0x24c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x248]
mov ebx, dword [ebp - 0x27c]
sub ecx, eax
lea esi, [ecx + 0xd]
cmp esi, dword [ebx]
jbe 0x479b10
mov dword [ebx], esi
push 0x7a
pop esi
jmp 0x479b3b
push eax
push 0x465cfc
push dword [ebx]
push dword [ebp - 0x280]
call fcn.004729cc
add esp, 0x10
test eax, eax
je 0x479b2f
push 0xd
pop esi
jmp 0x479b35
xor eax, eax
mov dword [ebx], esi
mov esi, eax
mov eax, dword [ebp - 0x24c]
lea ecx, [ebp - 0x244]
cmp eax, ecx
je 0x479b4e
push edi
push eax
call fcn.004834ca
pop ecx
pop ecx
lea eax, [ebp - 0x264]
cmp dword [ebp - 0x26c], eax
je 0x479b6f
push edi
push dword [ebp - 0x26c]
call fcn.004834ca
pop ecx
pop ecx
jmp 0x479b6f
push 0xe
pop esi
mov dword [ebp - 4], 0x4e
lea eax, [ebp - 0x224]
cmp dword [ebp - 0x22c], eax
je 0x479b92
push edi
push dword [ebp - 0x22c]
call fcn.004834ca
pop ecx
pop ecx
jmp 0x4798ee