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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4570f8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x47306c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
cmp dword [ecx + 0x14], 8
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
mov edx, dword [ebx + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x44], eax
mov eax, ecx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x34], edx
jb 0x41dcd6
mov eax, dword [ecx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41dd0a
push 0x19
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov ecx, esi
push 0x46ad24
mov word [esi], ax
call fcn.00409b10
mov eax, esi
jmp 0x41de54
push 0x208
mov dword [ebp - 0x38], 1
call fcn.00435610
add esp, 4
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov edi, 0x104
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp - 0x48]
mov esi, eax
cmp dword [eax + 0x14], 8
jb 0x41dd4d
mov esi, dword [eax]
mov eax, dword [ebp - 0x34]
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x41dd5a
mov edx, dword [eax]
mov eax, dword [ebp - 0x44]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x41dd67
mov ecx, dword [eax]
mov eax, dword [ebp - 0x30]
mov edi, eax
cmp dword [edi + 0x14], 8
mov edi, dword [ebp - 0x3c]
jb 0x41dd77
mov eax, dword [eax]
push esi
mov esi, dword [ebp - 0x40]
push edi
push esi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [edi - 1]
cmp eax, ecx
jb 0x41de08
mov edx, dword [ebp - 0x34]
mov eax, edx
cmp dword [edx + 0x14], 8
jb 0x41dd9a
mov eax, dword [edx]
mov ecx, esi
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x41ddc6
test dx, dx
je 0x41ddc2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x41ddc6
add ecx, 4
add eax, 4
test dx, dx
jne 0x41dda0
xor eax, eax
jmp 0x41ddcb
sbb eax, eax
or eax, 1
test eax, eax
je 0x41de08
push esi
call fcn.004350dd
mov eax, dword [ebp - 0x38]
xor ecx, ecx
inc eax
mov edx, 2
imul edi, eax, 0x104
mov dword [ebp - 0x38], eax
mov eax, edi
mov dword [ebp - 0x3c], edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00435610
add esp, 8
mov dword [ebp - 0x40], eax
jmp 0x41dd40
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41de10
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00409b10
push esi
call fcn.004350dd
mov eax, dword [ebp - 0x4c]
add esp, 4
movups xmm0, xmmword [ebp - 0x2c]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [eax + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043506b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10