Function at 0x405c60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47dd4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5b0
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x10]
mov eax, dword [0x4ac3b8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
push edi
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push esi
push ebx
mov dword [esp + 0x5c4], eax
mov eax, dword [ebp + 8]
push ecx
xor edi, edi
push eax
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.00405870
add esp, 0x18
test eax, eax
jne 0x405fad
push 0x488000
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_7]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x5c8], edi
call fcn.00405620
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x24]
push str._sdatacommon.dat
push ecx
mov byte [esp + 0x5d4], 1
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format_1]
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c4], 0
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov word [esp + 0x20], di
xor eax, eax
mov ecx, 0x20
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x40
lea edx, [esp + 0x28]
push edx
push 0x4887a8
push str.commender
push str.commend
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 2
jbe 0x405d7b
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.MSVCR71.dll__wtoi64]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, edx
add esp, 4
test eax, eax
mov dword [ecx + 4], edx
jl 0x405d7b
jg 0x405d70
cmp dword [ecx], 0
jbe 0x405d7b
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
jmp 0x405e3e
mov edx, dword [ebp + 0xc]
cmp byte [edx], 0
jne 0x405e3e
xor eax, eax
push eax
push eax
mov word [esp + 0x1b0], 0
mov ecx, 0x100
lea edi, [esp + 0x1b2]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1b4]
push ecx
push str.kele55_rec_id
push str.http:__www.kele55.com_
mov dword [esp + 0x24], 0x200
call dword [sym.imp.WININET.dll_InternetGetCookieExW]
test eax, eax
je 0x405e38
xor eax, eax
mov word [esp + 0xa8], ax
mov dword [esp + 0x10], eax
mov ecx, 0x3f
lea edi, [esp + 0xaa]
push str._d:_I64d:_d
rep stosd dword es:[edi], eax
push str.kele55_rec_id
lea edx, [esp + 0xb0]
push 0x488984
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCR71.dll_swprintf]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x1c8]
push ecx
call dword [sym.imp.MSVCR71.dll_swscanf]
mov dl, byte [esp + 0x34]
mov eax, dword [ebp + 0xc]
add esp, 0x24
mov byte [eax], dl
jmp 0x405e3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x80
mov ecx, esi
mov dword [esp + 0x28], 0x40
call dword [sym.imp.MFC71U.DLL_CRecordset::GetBoundParamIndex]
push eax
push str.GUAGUAACOUNTID
push str.http:__www.kele55.com_
call dword [sym.imp.WININET.dll_InternetGetCookieExW]
push 0xffffffffffffffff
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_CDC::ReleaseAttribDC]
mov edi, dword [sym.imp.MSVCR71.dll_wcslen]
push str.GUAGUAACOUNTID
call edi
add esp, 4
inc eax
push eax
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_COleMessageFilter::XMessageFilter::MessagePending]
push eax
mov ecx, esi
mov byte [esp + 0x5c8], 2
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_3]
lea ecx, [esp + 0xc]
mov byte [esp + 0x5c4], 0
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
push 0
push 0
lea eax, [esp + 0x20]
push eax
push 0x240
mov ecx, ebx
mov dword [esp + 0x28], 0x200
call dword [sym.imp.MFC71U.DLL_CRecordset::GetBoundParamIndex]
push eax
push str.HMAFROMURL
push str.http:__www.kele55.com_
call dword [sym.imp.WININET.dll_InternetGetCookieExW]
push 0xffffffffffffffff
mov ecx, ebx
call dword [sym.imp.MFC71U.DLL_CDC::ReleaseAttribDC]
push str.HMAFROMURL
call edi
add esp, 4
inc eax
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebx
call dword [sym.imp.MFC71U.DLL_COleMessageFilter::XMessageFilter::MessagePending]
push eax
mov ecx, ebx
mov byte [esp + 0x5c8], 3
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_3]
lea ecx, [esp + 0xc]
mov byte [esp + 0x5c4], 0
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
call fcn.004496d0
mov edi, dword [ebp + 0x1c]
lea ecx, [esp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], edx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov ecx, dword [esi]
push edx
mov edx, dword [ebx]
push eax
push ecx
mov byte [esp + 0x5d0], 4
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
mov esi, dword [ebp + 8]
mov edx, dword [esi + 4]
mov eax, dword [esi]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push str._I64d__d__s__s__I64d
push ecx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format_1]
mov eax, dword [esi + 4]
add esp, 0x24
test eax, eax
jl 0x405f99
jg 0x405f8c
cmp dword [esi], 0
jbe 0x405f99
lea edx, [esp + 0x14]
push edx
call fcn.004056b0
add esp, 4
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x5bc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x5b4]
call fcn.0045015b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret