Function at 0x40ee48
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x230
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [esp + 0x228], eax
xor esi, esi
lea edi, [esp + 0x20]
push 0x208
push esi
push edi
call fcn.004b8bc0
add esp, 0xc
push 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea esi, [esp + 0x14]
mov ecx, esi
push edi
call fcn.0040394a
lea edi, [esp + 8]
push esi
push edi
call 0x40f030
add esp, 8
cmp byte [esi + 0xb], 0
js 0x40eebc
mov word [esp + 0x14], 0
mov byte [esp + 0x1f], 0
jmp 0x40eee8
mov eax, dword [esp + 0x14]
mov word [eax], 0
mov dword [esp + 0x18], 0
cmp byte [esp + 0x1f], 0
jns 0x40eee8
push dword [esp + 0x14]
call fcn.004af3c6
add esp, 4
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x14], xmm0
movzx ebx, byte [esp + 0x1f]
test bl, bl
cmovs ebx, dword [esp + 0x18]
cmovs esi, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x27]
cmp eax, 0x7ffffff0
jae 0x40f022
cmp eax, 4
mov dword [esp + 4], esi
ja 0x40ef3b
lea esi, [esp + 8]
mov byte [esi + 0xb], bl
jmp 0x40ef6f
lea edi, [ebx + 0x2f]
and edi, 0xfffffff8
js 0x40f02b
lea eax, [edi + edi]
push eax
call fcn.004af396
add esp, 4
mov esi, eax
mov dword [esp + 8], eax
or edi, 0x80000000
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
test ebx, ebx
lea edi, [esp + 8]
je 0x40ef80
lea eax, [ebx + ebx]
push eax
push dword [esp + 8]
push esi
call fcn.004b80c0
add esp, 0xc
mov word [esi + ebx*2], 0
mov ecx, edi
push 0x27
push str.User_Data_v3updateconfig_v3update.ini
call fcn.00429d18
cmp byte [esp + 0x13], 0
jns 0x40ef9f
mov edi, dword [esp + 8]
push edi
push 0
push str.flag
push str.updateflag
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
dec eax
xor esi, esi
cmp eax, 1
ja 0x40efe4
cmp byte [esp + 0x13], 0
jns 0x40efc7
mov eax, dword [esp + 8]
jmp 0x40efcb
lea eax, [esp + 8]
push eax
push 0x4e3ea0
push str.flag
push str.updateflag
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor esi, esi
inc esi
cmp byte [esp + 0x13], 0
jns 0x40eff7
push dword [esp + 8]
call fcn.004af3c6
add esp, 4
cmp byte [esp + 0x1f], 0
jns 0x40f00a
push dword [esp + 0x14]
call fcn.004af3c6
add esp, 4
mov ecx, dword [esp + 0x228]
xor ecx, ebp
call fcn.004af401
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 8]
call fcn.00428aec
call fcn.004c9a66
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x530f98]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
movzx ecx, byte [eax + 0xb]
mov edx, eax
test cl, cl
jns 0x40f059
mov edx, dword [eax]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40f07e
lea ebx, [edx + ecx*2]
add ebx, 0xfffffffe
add ecx, ecx
neg ecx
cmp word [ebx], 0x5c
je 0x40f077
add ebx, 0xfffffffe
add ecx, 2
jne 0x40f067
jmp 0x40f07e
sub ebx, edx
cmp ebx, 0xfffffffe
jne 0x40f09e
mov ecx, esi
push 0x4e3bae
call fcn.0040394a
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af401
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
sar ebx, 1
lea edx, [eax + 0xc]
lea edi, [ebp - 0x1c]
mov ecx, edi
push edx
push ebx
push 0
push eax
call fcn.004298c8
movsd xmm0, qword [edi]
movsd qword [esi], xmm0
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
jmp 0x40f08a