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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508bcd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x542040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
cmp dword [ebx], 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], ecx
je 0x42f5b4
cmp dword [ebx + 4], 0
je 0x42f5b4
mov dword [ebp - 0x14], 0
mov ecx, 0x115
mov dword [ebp - 4], 0
call fcn.00425b20
mov esi, eax
mov ecx, 0x8b
xor eax, eax
mov dword [ebp - 0x14], esi
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x20]
lea eax, [esi + 0x10]
mov dword [esi + 4], 1
mov dword [esi + 0xc], 0x105
mov dword [esi + 8], eax
mov dword [esi], 0x104
push dword [ebx]
push 0x104
push eax
push edi
push dword [ebp - 0x24]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test edi, edi
je 0x42f33e
cmp word [edi], 0
je 0x42f33e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x42f33e
mov eax, dword [ebp - 0x2c]
push dword [eax]
push edi
push dword [ebp - 0x24]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp ebx, 0x103
je 0x42f352
cmp ebx, 0x102
jne 0x42f487
mov eax, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [ebp - 0x18], edx
cmp eax, 0x208
jae 0x42f3c8
lea ecx, [eax + 0x1209]
mov dword [ebp - 0x1c], ecx
lea edi, [eax + 0x1219]
cmp ecx, eax
jbe 0x42f3c8
mov ecx, edi
call fcn.00425b20
mov ebx, eax
lea ecx, [edi*2 + 2]
shr ecx, 1
xor eax, eax
shr ecx, 1
mov edi, ebx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0xc]
lea eax, [eax*2 + 0x20]
push eax
push esi
push ebx
call fcn.004def30
lea eax, [ebx + 0x10]
push esi
mov dword [ebx + 8], eax
call fcn.004eb01a
mov eax, dword [ebp - 0x1c]
mov esi, ebx
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov dword [ebp - 0x14], esi
mov dword [ebx + 0xc], eax
mov dword [esi], 0x208
lea ebx, [esi + 8]
mov eax, dword [ebx]
xor ecx, ecx
mov word [eax + 0x410], cx
cmp edx, 0x208
jb 0x42f45d
mov ecx, 0x208
lea edi, [edx - 0x208]
jbe 0x42f45d
cmp edi, 8
jb 0x42f450
mov eax, dword [ebx]
lea edi, [eax + 0x410]
lea eax, [eax + edx*2]
mov dword [ebp - 0x18], edi
add eax, 0xfffffffe
cmp edi, ebx
lea edi, [edx - 0x208]
ja 0x42f415
cmp eax, ebx
jae 0x42f450
and edi, 7
mov eax, edx
sub eax, edi
nop dword [eax]
add ecx, 8
cmp ecx, eax
jb 0x42f420
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
lea ecx, [eax - 0x201]
shr ecx, 3
xor eax, eax
shl ecx, 4
shr ecx, 1
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, dword [ebp - 0x1c]
cmp ecx, edx
jae 0x42f45d
nop dword [eax]
mov eax, dword [ebx]
xor edi, edi
mov word [eax + ecx*2], di
inc ecx
cmp ecx, edx
jb 0x42f450
cmp dword [esi], 0
mov eax, dword [ebp - 0x2c]
jbe 0x42f5d8
push dword [eax]
mov ecx, dword [ebp - 0x20]
push 0x208
push dword [ebx]
push ecx
push dword [ebp - 0x24]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [ebp - 0x20], edx
cmp eax, ebx
jae 0x42f4fd
lea ecx, [ebx + 0x1001]
add ecx, eax
lea edi, [eax + ebx]
mov dword [ebp - 0x18], ecx
cmp ecx, eax
jbe 0x42f4fd
lea ecx, [edi + 0x1011]
call fcn.00425b20
mov ebx, eax
lea ecx, [edi*2 + 0x2024]
shr ecx, 1
xor eax, eax
shr ecx, 1
mov edi, ebx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0xc]
lea eax, [eax*2 + 0x20]
push eax
push esi
push ebx
call fcn.004def30
lea eax, [ebx + 0x10]
push esi
mov dword [ebx + 8], eax
call fcn.004eb01a
mov eax, dword [ebp - 0x18]
mov esi, ebx
mov edx, dword [ebp - 0x20]
add esp, 0x10
mov dword [ebx + 0xc], eax
mov ebx, dword [ebp - 0x1c]
mov dword [esi], ebx
lea edi, [esi + 8]
mov eax, dword [edi]
xor ecx, ecx
mov word [eax + ebx*2], cx
cmp ebx, edx
ja 0x42f580
mov ecx, edx
mov eax, ebx
sub ecx, ebx
mov dword [ebp - 0x18], ecx
cmp ebx, edx
jae 0x42f580
cmp ecx, 8
jb 0x42f573
mov ecx, dword [edi]
lea edx, [ecx + ebx*2]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x20]
lea ecx, [ecx + edx*2]
add ecx, 0xfffffffe
cmp dword [ebp - 0x1c], edi
ja 0x42f53a
cmp ecx, edi
jae 0x42f573
mov edi, dword [ebp - 0x18]
mov ecx, edx
and edi, 7
sub ecx, edi
add eax, 8
cmp eax, ecx
jb 0x42f544
mov edi, dword [ebp - 0x1c]
sub ecx, ebx
add ecx, 7
mov dword [ebp - 0x18], eax
shr ecx, 3
xor eax, eax
shl ecx, 4
shr ecx, 1
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, dword [ebp - 0x18]
cmp eax, edx
jae 0x42f580
lea edi, [esi + 8]
mov ecx, dword [edi]
xor ebx, ebx
mov word [ecx + eax*2], bx
inc eax
cmp eax, edx
jb 0x42f573
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
mov dword [edi], 0
cmp eax, edi
je 0x42f596
mov eax, esi
xor esi, esi
mov dword [edi], eax
mov dword [ebp - 4], 1
test esi, esi
je 0x42f5b0
add dword [esi + 4], 0xffffffff
jne 0x42f5b0
push esi
call fcn.004eb01a
add esp, 4
mov eax, edi
jmp 0x42f5ba
mov dword [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret 0xc
push 0x53ec60
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
call fcn.004dee7a
int3