Function at 0x405920
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x497baf
mov eax, dword fs:[0]
push eax
mov eax, 0x9f0c
mov dword fs:[0], esp
call fcn.00496a60
mov eax, dword [0x4bc410]
xor eax, esp
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x9f18], eax
mov eax, dword [0x4bd2c0]
mov edx, dword [eax + 0x7e4]
mov edi, ecx
lea ecx, [eax + 0x7e8]
push ecx
push edx
lea ecx, [esp + 0x104]
mov dword [esp + 0x34], edi
call fcn.004364d0
xor ebx, ebx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x9f24], ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x70]
mov byte [esp + 0x9f24], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x8c]
mov byte [esp + 0x9f24], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0xc4]
mov byte [esp + 0x9f24], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x54]
mov byte [esp + 0x9f24], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0xe0]
mov byte [esp + 0x9f24], 5
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov ecx, 0x4bd154
mov byte [esp + 0x9f24], 6
mov dword [0x4bd150], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
mov ecx, 0x4bd170
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
mov ecx, 0x4bd18c
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
mov ecx, dword [0x4bc8ec]
lea eax, [esp + 0x9e68]
push eax
push ebx
push ebx
push 1
push ecx
mov ecx, 0x4bd1c8
call fcn.00431c90
mov ebp, dword [esp + 0x9f2c]
cmp ebp, ebx
je 0x405a74
xor eax, eax
jmp 0x405a60
mov cl, byte [eax + 0x4bc77c]
mov byte [esp + eax + 0x9e34], cl
inc eax
cmp cl, bl
jne 0x405a60
jmp 0x405ac2
mov edx, dword [str.query.pipisite.com]
mov eax, dword [0x4a0fc0]
mov ecx, dword [0x4a0fc4]
mov dword [esp + 0x9e34], edx
mov edx, dword [0x4a0fc8]
mov dword [esp + 0x9e38], eax
mov ax, word [0x4a0fcc]
mov dword [esp + 0x9e3c], ecx
mov cl, byte [0x4a0fce]
mov dword [esp + 0x9e40], edx
mov word [esp + 0x9e44], ax
mov byte [esp + 0x9e46], cl
mov esi, dword [0x4bd2c0]
mov edx, dword [esi + 0x4d0]
add esi, 0x4cc
shr edx, 0xb
and dl, 1
mov byte [esp + 0x13], dl
je 0x405b53
movzx eax, byte [esi + 0x200]
lea eax, [eax + eax*2]
shl eax, 5
lea edi, [eax + esi]
movzx eax, byte [esi + 0x200]
lea ecx, [eax + eax*2]
shl ecx, 5
lea ecx, [ecx + esi + 0x244]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
movzx eax, byte [esi + 0x200]
lea edx, [eax + eax*2]
shl edx, 5
lea ecx, [edx + esi + 0x228]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
movzx eax, word [edi + 0x224]
push eax
lea ecx, [edi + 0x208]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
movzx ecx, byte [esi + 0x200]
push eax
push ecx
lea ecx, [esp + 0x110]
call fcn.00436280
mov edi, dword [esp + 0x2c]
push 0x4bd18c
push 0x4bd170
push 0x4bd154
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push 0x4bd150
push 0x4bd14d
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0xf0]
push edx
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0xe8]
push ecx
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [0x4bd0dc]
lea edx, [esp + 0x90]
push edx
push ebx
push ebx
lea eax, [esp + 0x9ec4]
push eax
push ecx
push 0x749
push ebx
lea edx, [esp + 0x9ea0]
push edx
lea ecx, [esp + 0x16c]
call fcn.004381f0
cmp eax, ebx
je 0x406271
cmp dword [esp + 0x1cb0], ebx
je 0x405c80
mov edx, dword [esp + 0x15e4]
mov ecx, dword [0x4bd2c0]
xor eax, eax
cmp edx, ebx
setne al
add eax, 4
mov dword [ecx + 0x47c], eax
or dword [esi + 4], 0x800
mov dl, byte [esp + 0x15e4]
lea eax, [esp + 0x15e8]
mov byte [esi + 0x200], dl
push eax
movzx eax, byte [esp + 0x15e8]
lea ecx, [eax + eax*2]
shl ecx, 5
lea ecx, [ecx + esi + 0x208]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
movzx eax, byte [esi + 0x200]
lea edx, [eax + eax*2]
mov ax, word [esp + 0x1620]
shl edx, 5
mov word [edx + esi + 0x224], ax
jmp 0x405c87
and dword [esi + 4], 0xfffff7ff
mov ecx, dword [0x4bd0dc]
cmp ecx, dword [esp + 0x44]
jae 0x405d64
lea ecx, [esp + 0x8c]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov edx, dword [esp + 0x1c]
push eax
push edx
lea ecx, [esp + 0xb0]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 3
mov ecx, edi
call fcn.00403b90
lea ecx, [esp + 0xe0]
mov byte [esp + 0x9f24], 5
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x54]
mov byte [esp + 0x9f24], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xc4]
mov byte [esp + 0x9f24], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x8c]
mov byte [esp + 0x9f24], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x70]
mov byte [esp + 0x9f24], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xa8]
mov byte [esp + 0x9f24], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xfc]
mov dword [esp + 0x9f24], 0xffffffff
call fcn.00435370
mov eax, 2
jmp 0x40630f
cmp dword [0x4bd150], 3
jne 0x405ebe
push str.config_config.ini
lea eax, [esp + 0x24]
push 0x4bc618
push eax
call fcn.00401050
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push ebx
push str.UseExNetInEDU
push 0x49fd90
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
dec eax
neg eax
sbb al, al
inc al
lea ecx, [esp + 0x20]
mov byte [esp + 0x13], al
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp byte [esp + 0x13], bl
je 0x405ebe
mov ecx, dword [esp + 0x38]
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ecx
call esi
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call edi
lea edx, [esp + 0x9eb0]
mov edi, edi
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x405de0
mov edx, dword [esp + 0x30]
push edx
call esi
push eax
call edi
lea edx, [esp + 0x9e7c]
jmp 0x405e00
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x405e00
push 0x4bd18c
push 0x4bd170
push 0x4bd154
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
push ecx
push 0x4bd150
push 0x4bd14d
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0xc0]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0xe8]
push edx
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x70]
push edx
mov edx, dword [0x4bd0dc]
lea eax, [esp + 0x90]
push eax
push ebx
push ebx
lea ecx, [esp + 0x9ec4]
push ecx
push edx
push 0x749
lea eax, [esp + 0x9ee4]
push eax
lea ecx, [esp + 0x9f1c]
push ecx
lea ecx, [esp + 0x16c]
call fcn.004381f0
mov edi, dword [esp + 0x2c]
mov eax, dword [0x4bd2c0]
cmp dword [eax + 0x2ec], ebx
jbe 0x4061dc
cmp ebp, ebx
je 0x4061dc
mov dword [eax + 0x7c8], 4
mov edx, dword [0x4bd2c0]
mov dword [edx + 0x468], 3
mov eax, dword [esp + 0x40]
push eax
mov ecx, 0x4bd1c8
call fcn.00455db0
mov ecx, 0x4bd1c8
call fcn.004555c0
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0xe4]
push edx
mov ecx, 0x4bc600
call fcn.0041d000
cmp byte [0x4bd14d], bl
je 0x405f50
mov eax, dword [0x4bd2c0]
cmp byte [eax + 0x694], bl
je 0x405f50
mov eax, dword [eax + 0x47c]
cmp eax, 1
je 0x405f46
cmp eax, 3
jne 0x405f50
mov ecx, 0x4bd1c8
call fcn.00456600
push ebx
push 1
mov ecx, 0x4bc600
call fcn.0041cc40
push ebx
mov ecx, 0x4bd1c8
call fcn.00432170
mov eax, dword [0x4bd2c0]
cmp byte [eax + 0x695], bl
je 0x405fb9
mov eax, dword [eax + 0x47c]
cmp eax, 1
je 0x405fb9
cmp eax, 3
je 0x405fb9
mov eax, dword [0x4bc8ec]
push eax
push 0x4a0f3c
lea ecx, [esp + 0x9eec]
push str._s__u
push ecx
call dword [sym.imp.MSVCR71.dll_sprintf]
mov ecx, dword [0x4bd2c0]
add esp, 0x10
lea edx, [esp + 0x9ee4]
push edx
call fcn.00459fa0
cmp dword [0x4bc474], ebx
jne 0x406022
push 0x50
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov byte [esp + 0x9f24], 7
je 0x405fe4
mov ecx, eax
call fcn.00401d90
jmp 0x405fe6
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword [0x4bc474], eax
mov dword [eax + 0x44], ecx
mov edx, dword [0x4bc474]
mov eax, dword [esp + 0x14]
mov dword [edx + 0x48], eax
mov ecx, dword [0x4bc474]
mov edx, dword [esp + 0x18]
push ebx
push ebx
mov dword [ecx + 0x4c], edx
mov ecx, dword [0x4bc474]
push ebx
mov byte [esp + 0x9f30], 6
call sub.MFC71.DLL_CWinThread::CreateThread
mov eax, dword [0x4bd0dc]
cmp eax, dword [esp + 0x34]
jae 0x4061dc
mov ecx, dword [str.00000000000000000000000000000000]
push ecx
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
je 0x4061dc
mov ecx, 0x4bd028
call fcn.00425e80
cmp eax, dword [esp + 0x1c]
jae 0x4060a2
push ebx
push ebx
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [esp + 0x1d08]
call fcn.00440790
lea ecx, [esp + 0x1cfc]
mov byte [esp + 0x9f24], 8
call sub.MFC71.DLL_CDialog::DoModal
lea ecx, [esp + 0x1cfc]
mov byte [esp + 0x9f24], 6
call fcn.00403840
cmp dword [edi + 0xd0], ebx
je 0x406144
lea ecx, [esp + 0xa8]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea ecx, [esp + 0x74]
mov byte [esp + 0x9f28], 9
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0xd0]
mov byte [esp + 0x9f30], 0xa
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push ecx
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea ecx, [esp + 0x64]
mov byte [esp + 0x9f34], 0xb
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov byte [esp + 0x9f38], 6
mov ecx, dword [edi + 0xd0]
call fcn.00417810
lea ecx, [esp + 0xe0]
mov byte [esp + 0x9f24], 5
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x54]
mov byte [esp + 0x9f24], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xc4]
mov byte [esp + 0x9f24], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x8c]
mov byte [esp + 0x9f24], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x70]
mov byte [esp + 0x9f24], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xa8]
mov byte [esp + 0x9f24], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xfc]
mov dword [esp + 0x9f24], 0xffffffff
call fcn.00435370
mov eax, 1
jmp 0x40630f
lea ecx, [esp + 0xe0]
mov byte [esp + 0x9f24], 5
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x54]
mov byte [esp + 0x9f24], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xc4]
mov byte [esp + 0x9f24], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x8c]
mov byte [esp + 0x9f24], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x70]
mov byte [esp + 0x9f24], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xa8]
mov byte [esp + 0x9f24], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xfc]
mov dword [esp + 0x9f24], 0xffffffff
call fcn.00435370
xor eax, eax
jmp 0x40630f
push str.get_upgrade_info_error
call fcn.0048e650
add esp, 4
lea ecx, [esp + 0xe0]
mov byte [esp + 0x9f24], 5
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x54]
mov byte [esp + 0x9f24], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xc4]
mov byte [esp + 0x9f24], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x8c]
mov byte [esp + 0x9f24], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x70]
mov byte [esp + 0x9f24], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xa8]
mov byte [esp + 0x9f24], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xfc]
mov dword [esp + 0x9f24], 0xffffffff
call fcn.00435370
or eax, 0xffffffff
mov ecx, dword [esp + 0x9f1c]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x9f10]
pop ebp
pop ebx
xor ecx, esp
call fcn.00496ace
add esp, 0x9f18
ret 4