Function at 0x40f320
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428284
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [0x436024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x42c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [ebp - 0x4a0]
push eax
push 0x400
lea ecx, [ebp - 0x410]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
push ecx
push esi
mov dword [ebp - 0x4a0], ebx
call edi
test eax, eax
je 0x40f3ce
jmp 0x40f390
mov eax, dword [ebp - 0x4a0]
cmp eax, ebx
je 0x40f3e5
push eax
lea edx, [ebp - 0x410]
push edx
lea ecx, [ebp - 0x42c]
call dword [sym.imp.MSVCP80.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__::append_char_const___unsigned_int_]
lea eax, [ebp - 0x4a0]
push eax
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push esi
mov dword [ebp - 0x4a0], ebx
call edi
test eax, eax
jne 0x40f390
push 0x42ee00
push 0x42ee0c
push str.bugreport
call fcn.00419910
add esp, 0xc
cmp dword [ebp - 0x414], 0x10
mov ebx, dword [ebp - 0x428]
jae 0x40f3fa
lea ebx, [ebp - 0x428]
lea edx, [ebp - 0x4ac]
push edx
call fcn.00418ed0
add esp, 4
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x4ac]
push esi
push str.6e0Rs
push str.bugreport
call fcn.00419910
add esp, 0xc
cmp dword [ebp - 0x418], 0
jne 0x40f47e
push str.RecvBasicInfoAck:_failed__data_null._r_n
push 0x42d6e4
call fcn.00419910
lea eax, [esi - 0x10]
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f461
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, 2
jmp 0x40f78d
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x4a8], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push 0x42ee88
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.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__]
xor edi, edi
cmp dword [ebp - 0x418], edi
je 0x40f62f
mov bl, 3
push edi
push 0x42ee88
lea ecx, [ebp - 0x42c]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov edi, eax
cmp edi, 0xffffffff
je 0x40f62f
push edi
push 0
lea ecx, [ebp - 0x49c]
push ecx
lea ecx, [ebp - 0x42c]
call dword [sym.imp.MSVCP80.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__::substr_unsigned_int__unsigned_int_]
push 0
push 0x42ee8c
lea ecx, [ebp - 0x49c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f5d3
push esi
push 0
lea edx, [ebp - 0x480]
push edx
lea ecx, [ebp - 0x49c]
call dword [sym.imp.MSVCP80.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__::substr_unsigned_int__unsigned_int_]
mov byte [ebp - 4], 4
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
push ecx
add esi, 1
push esi
lea edx, [ebp - 0x464]
push edx
lea ecx, [ebp - 0x49c]
call dword [sym.imp.MSVCP80.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__::substr_unsigned_int__unsigned_int_]
lea eax, [ebp - 0x480]
push eax
mov byte [ebp - 4], 5
mov esi, dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push str.nRet
call esi
add esp, 8
test al, al
je 0x40f58c
cmp dword [ebp - 0x44c], 0x10
mov eax, dword [ebp - 0x460]
jae 0x40f57a
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.MSVCR80.dll_atoi]
add esp, 4
mov dword [ebp - 0x4a8], eax
jmp 0x40f5b4
lea ecx, [ebp - 0x480]
push ecx
push str.Config
call esi
add esp, 8
test al, al
je 0x40f5b4
lea edx, [ebp - 0x464]
push edx
lea ecx, [ebp - 0x448]
call dword [0x4291d4]
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x480]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
push ecx
lea edx, [edi + 1]
push edx
lea eax, [ebp - 0x480]
push eax
lea ecx, [ebp - 0x42c]
call dword [sym.imp.MSVCP80.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__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 6
call dword [0x4291d4]
lea ecx, [ebp - 0x480]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x49c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [ebp - 0x418], 0
jne 0x40f4b9
mov ecx, dword [ebp - 0x434]
test ecx, ecx
je 0x40f73e
cmp dword [ebp - 0x430], 0x10
mov eax, dword [ebp - 0x444]
jae 0x40f652
lea eax, [ebp - 0x444]
push ecx
push eax
lea ecx, [ebp - 0x4a4]
push ecx
call fcn.00414780
add esp, 0xc
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x4a4]
cmp dword [edx - 0xc], 0
je 0x40f718
call fcn.00401a90
mov ecx, dword [ebp - 0x4a4]
mov edi, eax
call fcn.0040c410
test eax, eax
je 0x40f706
lea eax, [ebp - 0x4b0]
push eax
mov dword [ebp - 0x4b0], 0
call fcn.004010b0
push eax
call fcn.00405960
test eax, eax
je 0x40f6ff
call fcn.004010b0
lea esi, [ebp - 0x4b4]
call fcn.00401a20
mov edi, eax
mov byte [ebp - 4], 8
call fcn.004010b0
lea esi, [ebp - 0x4b8]
call fcn.004019f0
mov byte [ebp - 4], 9
mov edi, dword [edi]
mov ecx, dword [ebp - 0x4b0]
push eax
push ecx
mov eax, edi
call fcn.004153c0
add esp, 8
mov eax, esi
call fcn.00407b90
lea eax, [ebp - 0x4b4]
call fcn.00407b90
jmp 0x40f718
push str.no_need_set_fdump_flag_
jmp 0x40f70b
push str.parse_config_failed_
push 0x42d6e4
call fcn.00419910
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x4a4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f73e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x448]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x4ac]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f774
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x4a8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042575e
mov esp, ebp
pop ebp
ret