Function at 0x401fb0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Resolve function by parsing pe exports
Send data
Send http request

Disassembly:
sub esp, 0x564
mov al, byte [esp + 3]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
push 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x30], ebx
mov byte [esp + 0x5c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 0
push 0
push 0
push 0
push 0x4654b8
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
mov dword [esp + 0x34], esi
je 0x4021ac
push 0
push 0
push 3
push 0
push 0
push 0x1bb
push str.appstore.qianxin.com
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
push 0
push 0x84802000
push 0
push 0
push 0
mov ebx, eax
push str._app_ipinfo.php
push 0x4654e4
push ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x34], 0x84802000
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, dword [sym.imp.WININET.dll_HttpSendRequestA]
push 0
push 0
mov ebp, eax
push 0
push 0
push ebp
call edi
test eax, eax
jne 0x4020ae
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x1f
push ebp
mov dword [esp + 0x28], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
test eax, eax
je 0x402191
mov eax, dword [esp + 0x14]
push 4
or eax, 0x3180
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0x1f
push ebp
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
je 0x402191
push 0
push 0
push 0
push 0
push ebp
call edi
test eax, eax
je 0x402191
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x175]
mov byte [esp + 0x174], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x18], 1
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x174]
lea edx, [esp + 0x174]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
push 0x3ff
push edx
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edi, [esp + 0x174]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x20]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40215c
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x174]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov esi, dword [esp + 0x34]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0x1c]
mov ecx, dword [eax]
push ecx
push 0
push edx
lea ecx, [esp + 0x64]
call dword [sym.imp.MSVCP60.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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x18]
test eax, eax
ja 0x4020d1
mov ebx, dword [esp + 0x30]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call edi
test ebp, ebp
je 0x4021a1
push ebp
call edi
test ebx, ebx
je 0x4021a8
push ebx
call edi
mov ebx, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x6c]
call fcn.0041c2d0
lea ecx, [esp + 0x78]
call fcn.00416860
mov esi, dword [esp + 0x5c]
test esi, esi
jne 0x4021ce
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x20]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x402221
mov edi, dword [esp + 0x20]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
mov byte [eax + ebp], 0
lea ecx, [esp + 0x68]
push 0
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x84]
call fcn.00416990
push 1
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [esp + 0x48]
lea ecx, [esp + 0x68]
push eax
push 0x4654e8
call fcn.0041de80
mov ecx, eax
call fcn.0041cdb0
lea ecx, [esp + 0x1c]
push ecx
push str.area
lea ecx, [esp + 0x70]
call fcn.0041de80
mov ecx, eax
call fcn.0041cdb0
mov esi, eax
push 0
lea ecx, [esp + 0x3c]
mov dl, byte [esi]
mov byte [esp + 0x3c], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
push ecx
push 0
push esi
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP60.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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dl, byte [0x46b3c4]
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x110]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x4022eb
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x110]
push ecx
push eax
call fcn.00401490
mov eax, dword [esp + 0x58]
mov ebp, dword [esp + 0x580]
add esp, 8
test eax, eax
je 0x402330
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x402318
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0x110]
push edx
push eax
push str._s__s
push ebp
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov edi, str.0.0.0.0
mov esi, ebx
mov ecx, 8
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x402347
sbb eax, eax
sbb eax, 0xffffffff
xor esi, esi
cmp eax, esi
jne 0x402364
push 0xff
push ebp
push ebx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [ebx + 0xff], 0
mov ecx, dword [esp + 0x3c]
cmp ecx, esi
je 0x402388
mov al, byte [ecx - 1]
test al, al
je 0x40237e
cmp al, 0xff
je 0x40237e
dec al
mov byte [ecx - 1], al
jmp 0x402388
dec ecx
push ecx
call fcn.00459410
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x3c], esi
cmp ecx, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
je 0x4023b8
mov al, byte [ecx - 1]
test al, al
je 0x4023ae
cmp al, 0xff
je 0x4023ae
dec al
mov byte [ecx - 1], al
jmp 0x4023b8
dec ecx
push ecx
call fcn.00459410
add esp, 4
push 1
lea ecx, [esp + 0x100]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0xdc]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
cmp dword [esp + 0xd4], esi
je 0x40243c
mov eax, dword [esp + 0xb4]
push esi
mov ecx, eax
add eax, 0x20
mov dword [esp + 0xb8], eax
call fcn.00402bf0
mov eax, dword [esp + 0xd4]
dec eax
mov dword [esp + 0xd4], eax
je 0x402427
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb0]
cmp eax, ecx
jne 0x402433
lea ecx, [esp + 0xa8]
call fcn.00402b70
cmp dword [esp + 0xd4], esi
jne 0x4023eb
cmp dword [esp + 0xa4], esi
je 0x402482
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0xa4]
add ecx, 4
dec eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0xa4], eax
je 0x402470
cmp ecx, dword [esp + 0x80]
jne 0x402479
lea ecx, [esp + 0x78]
call fcn.00402b70
cmp dword [esp + 0xa4], esi
jne 0x402445
lea ecx, [esp + 0x68]
call fcn.0041c740
mov ecx, dword [esp + 0x5c]
pop edi
cmp ecx, esi
pop esi
pop ebp
pop ebx
je 0x4024ba
mov al, byte [ecx - 1]
test al, al
je 0x4024b0
cmp al, 0xff
je 0x4024b0
dec al
mov byte [ecx - 1], al
add esp, 0x564
ret 4
dec ecx
push ecx
call fcn.00459410
add esp, 4
add esp, 0x564
ret 4