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

Disassembly:
push 0xffffffffffffffff
push 0x579cfc
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
push 0x208
lea eax, [esp + 0x32]
push 0
push eax
mov word [esp + 0x38], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
xor edi, edi
lea ebx, [esp + 0x18]
call fcn.004125d0
mov dword [esp + 0x248], edi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00410660
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x248], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00410660
add eax, 0x10
mov dword [esp + 0x14], eax
mov ebx, 2
mov byte [esp + 0x248], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00410660
add eax, 0x10
mov dword [esp + 0x20], eax
push 0x1d
push 0x5a4d8c
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x254], 3
call fcn.00410240
push str.datakwifimain.ini
lea edi, [esp + 0x18]
call fcn.00410c20
add esp, 4
push str.uplive.svr
lea edi, [esp + 0x24]
call fcn.00410c20
mov edi, dword [esp + 0x28]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 4
push edi
call esi
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
je 0x4e0f04
mov edx, dword [esp + 0x14]
push edx
call esi
test eax, eax
je 0x4e0f04
push edi
push 0x104
lea eax, [esp + 0x34]
push eax
push 0x58c320
push 0x5a4dc8
push 0x58c1f4
call ebp
test eax, eax
jbe 0x4e0f04
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x4e0ec0
sub eax, edx
sar eax, 1
cmp eax, 0xa
jne 0x4e0f04
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x30]
call fcn.0040ff50
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push edx
push eax
push 0x58d638
push str.infos
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esp + 0x1c]
call fcn.00410000
mov esi, dword [esp + 0x20]
push esi
push 0x104
lea ecx, [esp + 0x34]
push ecx
push 0x58c320
push str.Version
push 0x5a4dcc
call ebp
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
jmp 0x4e0f30
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x4e0f30
sub eax, edx
sar eax, 1
je 0x4e0f5a
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x30]
push eax
push str.Version
push str.DisplayVersions
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
call fcn.004e1030
lea eax, [esi - 0x10]
mov byte [esp + 0x248], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0f82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x248], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0faa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x248], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0fce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x248], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0ff9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00569ed6
add esp, 0x238
ret