Function at 0x4988aa
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4f132c
call fcn.004e1580
sub esp, 0x420
push ebx
push esi
push edi
mov ebx, ecx
push 0
call dword [sym.imp.MSVCRT.dll_time]
pop ecx
mov esi, eax
push dword [ebx + 0x44]
push 0
push str.LastQueryTime
push str.AppCtrl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_difftime]
pop ecx
pop ecx
call sub.MSVCRT.dll__ftol
cdq
mov ecx, 0x15180
idiv ecx
cmp eax, 3
jl 0x498b79
call fcn.004cbba4
mov edi, eax
test edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], edi
je 0x498916
mov eax, dword [edi]
push edi
call dword [eax + 4]
and dword [ebp - 4], 0
and dword [ebp - 0x20], 0
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
push ecx
push edi
mov byte [ebp - 4], 1
call dword [eax + 0xc]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x498b5d
mov ecx, dword [eax]
lea esi, [ebx + 0x48]
push esi
push 1
push eax
mov dword [ebp - 0x28], esi
call dword [ecx + 0xc]
cmp dword [esi], 0
je 0x498b5a
and byte [ebp - 0x42c], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x42b]
rep stosd dword es:[edi], eax
push dword [ebx + 0x44]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x42c]
push 0x400
push eax
push str.http:__conf.sandai.net_Thunder5_cfg.ini
push str.AppCtrlUrl
push str.AppSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esi]
and dword [ebp - 0x14], 0
test esi, esi
je 0x4989a4
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push 0x52b760
push esi
call dword [eax]
lea eax, [ebp - 0x42c]
push 0xffffffffffffffff
push eax
mov byte [ebp - 4], 2
call fcn.0040294f
pop ecx
mov dword [ebp - 0x10], eax
pop ecx
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x10]
mov byte [ebp - 4], 3
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 2
call esi
push 0xffffffffffffffff
push str.Thunder_cfg.ini
call fcn.0040294f
pop ecx
mov dword [ebp - 0x10], eax
pop ecx
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x10]
mov byte [ebp - 4], 4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
push dword [ebp - 0x10]
mov byte [ebp - 4], 2
call esi
lea eax, [ebp - 0x18]
push eax
call fcn.004d14df
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
mov byte [ebp - 4], 5
call fcn.0040294f
add esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x10]
mov byte [ebp - 4], 6
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x14]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x14]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x7c]
mov eax, dword [ebp - 0x14]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0xd8]
mov eax, dword [ebp - 0x14]
push 0x509490
mov ecx, ebx
mov dword [ebp - 0x18], eax
mov edi, dword [eax]
call sub.MFC42.DLL_CCmdTarget::GetInterface
push eax
push dword [ebp - 0x18]
call dword [edi + 0xa8]
push dword [ebx + 0x44]
mov ecx, ebx
call fcn.00498c27
and dword [ebp - 0x1c], 0
mov edi, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push ecx
push edi
mov eax, dword [edi]
mov byte [ebp - 4], 7
call dword [eax + 0x34]
cmp dword [ebp - 0x1c], 0
je 0x498b09
mov eax, dword [ebx + 0x44]
and dword [ebp - 0x18], 0
push 0xffffffffffffffff
push eax
call fcn.0040294f
pop ecx
mov dword [ebp - 0x10], eax
pop ecx
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 8
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
push dword [ebp - 0x10]
mov byte [ebp - 4], 7
call esi
cmp dword [ebp - 0x18], 0
je 0x498b09
mov ebx, dword [ebx + 0x44]
push 0xffffffffffffffff
push ebx
call fcn.0040294f
pop ecx
mov dword [ebp - 0x10], eax
pop ecx
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x10]
mov byte [ebp - 4], 9
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
push dword [ebp - 0x10]
mov byte [ebp - 4], 7
call esi
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
test eax, eax
je 0x498b25
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
test eax, eax
je 0x498b36
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
and byte [ebp - 4], 0
test eax, eax
je 0x498b47
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x498b55
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 1
pop eax
jmp 0x498b7b
mov eax, dword [ebp - 0x20]
and byte [ebp - 4], 0
test eax, eax
je 0x498b6b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x498b79
mov eax, dword [edi]
push edi
call dword [eax + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret