Function at 0x40df60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x238
mov eax, dword [0x52efc0]
xor esi, esi
lea edi, [esp + 0x28]
xor eax, ebp
mov dword [esp + 0x230], eax
push 0x208
push esi
push edi
call fcn.004b81d0
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]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
push edi
call fcn.004cf81e
add esp, 4
cmp eax, 0x7ffffff0
jae 0x40e1c2
mov ebx, eax
cmp eax, 5
jae 0x40dfdc
lea edi, [esp + 0x18]
test ebx, ebx
mov esi, edi
mov byte [edi + 0xb], bl
jne 0x40e00a
jmp 0x40e01d
lea edi, [ebx + 8]
and edi, 0xfffffff8
js 0x40e1d4
lea eax, [edi + edi]
push eax
call fcn.004aea96
add esp, 4
mov esi, eax
lea ecx, [esp + 0x18]
or edi, 0x80000000
mov dword [ecx], esi
mov dword [ecx + 8], edi
mov edi, ecx
mov dword [ecx + 4], ebx
mov eax, ebx
add eax, ebx
push eax
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.004b76d0
add esp, 0xc
mov word [esi + ebx*2], 0
lea eax, [esp + 0x18]
lea esi, [esp + 8]
push eax
push esi
call 0x40e1d9
add esp, 8
cmp byte [edi + 0xb], 0
js 0x40e048
mov word [esp + 0x18], 0
mov byte [edi + 0xb], 0
jmp 0x40e073
mov eax, dword [esp + 0x18]
mov word [eax], 0
mov dword [esp + 0x1c], 0
cmp byte [edi + 0xb], 0
jns 0x40e073
push dword [esp + 0x18]
call fcn.004aeac6
add esp, 4
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x10]
movsd xmm0, qword [esp + 8]
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], eax
movsd qword [esp + 0x18], xmm0
xor eax, eax
movzx ebx, byte [edi + 0xb]
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
test bl, bl
cmovs ebx, dword [esp + 0x1c]
cmovs ecx, dword [esp + 0x18]
lea eax, [ebx + 0x27]
cmp eax, 0x7ffffff0
jae 0x40e1cb
cmp eax, 4
mov dword [esp + 4], edi
ja 0x40e0d5
lea edi, [esp + 8]
mov byte [edi + 0xb], bl
jmp 0x40e10f
lea esi, [ebx + 0x2f]
mov dword [esp], ecx
and esi, 0xfffffff8
js 0x40e1d4
lea eax, [esi + esi]
push eax
call fcn.004aea96
add esp, 4
mov ecx, dword [esp]
or esi, 0x80000000
mov dword [esp + 8], eax
mov edi, eax
test ebx, ebx
mov dword [esp + 0x10], esi
lea esi, [esp + 8]
mov dword [esp + 0xc], ebx
je 0x40e11d
lea eax, [ebx + ebx]
push eax
push ecx
push edi
call fcn.004b76d0
add esp, 0xc
mov word [edi + ebx*2], 0
mov ecx, esi
push 0x27
push str.User_Data_v3updateconfig_v3update.ini
call fcn.00428714
cmp byte [esp + 0x13], 0
jns 0x40e13c
mov esi, dword [esp + 8]
push esi
push 0
push str.flag
push str.updateflag
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, dword [esp + 4]
dec eax
xor esi, esi
cmp eax, 1
ja 0x40e185
cmp byte [esp + 0x13], 0
jns 0x40e168
mov eax, dword [esp + 8]
jmp 0x40e16c
lea eax, [esp + 8]
push eax
push 0x4e32a4
push str.flag
push str.updateflag
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor esi, esi
inc esi
cmp byte [esp + 0x13], 0
jns 0x40e198
push dword [esp + 8]
call fcn.004aeac6
add esp, 4
cmp byte [edi + 0xb], 0
jns 0x40e1aa
push dword [esp + 0x18]
call fcn.004aeac6
add esp, 4
mov ecx, dword [esp + 0x230]
xor ecx, ebp
call fcn.004aeb01
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x18]
call fcn.0042752c
lea ecx, [esp + 8]
call fcn.0042752c
call fcn.004c8e4e
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ecx, dword [0x52efc0]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ecx, ebp
mov edx, eax
mov dword [ebp - 0x10], ecx
movzx ecx, byte [eax + 0xb]
test cl, cl
jns 0x40e202
mov edx, dword [eax]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40e225
lea ebx, [edx + ecx*2 - 2]
add ecx, ecx
neg ecx
cmp word [ebx], 0x5c
je 0x40e21e
add ebx, 0xfffffffe
add ecx, 2
jne 0x40e20e
jmp 0x40e225
sub ebx, edx
cmp ebx, 0xfffffffe
jne 0x40e243
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aeb01
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
lea edx, [eax + 0xc]
lea edi, [ebp - 0x1c]
sar ebx, 1
mov ecx, edi
push edx
push ebx
push 0
push eax
call fcn.004282dc
movsd xmm0, qword [edi]
mov eax, dword [edi + 8]
movsd qword [esi], xmm0
jmp 0x40e22c