Function at 0x401fb0
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402a59
push eax
mov eax, 0x1ac4
mov dword fs:[0], esp
call fcn.004027e0
push ebx
push ebp
push edi
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x165]
mov byte [esp + 0x164], bl
mov byte [esp + 0xe4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0xe5]
mov byte [esp + 0x64], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x65]
mov byte [esp + 0x12ac], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x208
xor eax, eax
lea edi, [esp + 0x12ad]
mov byte [esp + 0xa88], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x208
xor eax, eax
lea edi, [esp + 0xa89]
mov ebp, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x64]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x164]
lea ecx, [esp + 0xe4]
mov dword [esp + 0x38], eax
mov eax, 0x80
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x12ac]
mov dword [esp + 0x1ad8], ebx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1ae4]
cmp eax, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], 0x3c
mov dword [esp + 0x3c], 0x100
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x58], 0x824
jne 0x4020db
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 + 0x28]
push esi
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x40230b
cmp dword [esp + 0x38], 3
jne 0x40230b
push ebx
push ebx
push ebx
push ebx
push str.down
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x40230b
push ebx
push ebx
lea edx, [esp + 0x70]
push 3
lea ecx, [esp + 0xf4]
push edx
mov edx, dword [esp + 0x54]
push ecx
lea ecx, [esp + 0x17c]
push edx
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, eax
cmp edx, ebx
mov dword [esp + 0x20], edx
je 0x40230b
mov eax, dword [esp + 0x5c]
lea esi, [esp + 0xa8c]
cmp eax, ebx
je 0x402177
mov edi, dword [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x14], esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
mov eax, ecx
jmp 0x402193
mov edi, 0x40404c
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x14], esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
push 0x80200000
rep movsb byte es:[edi], byte [esi]
push ebx
push 0x4040a8
lea ecx, [esp + 0xa9c]
push str.HTTP_1.1
push ecx
push str.HEAD
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push ebx
push ebx
mov esi, eax
push ebx
push ebx
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40230b
lea edx, [esp + 0x1c]
push ebx
lea eax, [esp + 0x1c]
push edx
push eax
push 0x20000013
push esi
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebp
call esi
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x40230f
mov eax, dword [esp + 0x18]
cmp eax, 0xc8
je 0x40230b
cmp eax, 0x12e
jne 0x40230b
mov ecx, 0x208
xor eax, eax
lea edi, [esp + 0x269]
mov byte [esp + 0x268], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x28]
push ebx
lea edx, [esp + 0x26c]
push ecx
stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push edx
push 0x21
push eax
mov dword [esp + 0x3c], 0x824
call esi
lea edi, [esp + 0x268]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
cmp ebp, 0xfffffffd
jbe 0x402283
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov edi, dword [esp + 0x1af4]
mov ecx, dword [edi + 4]
cmp ecx, ebx
je 0x4022b0
mov al, byte [ecx - 1]
cmp al, bl
je 0x4022b0
cmp al, 0xff
je 0x4022b0
cmp ebp, ebx
jne 0x4022d6
dec al
push ebx
mov byte [ecx - 1], al
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x40230f
cmp ebp, ebx
jne 0x4022c0
push 1
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x40230f
mov eax, dword [edi + 0xc]
cmp eax, 0x1f
ja 0x4022cc
cmp eax, ebp
jae 0x4022df
push 1
mov ecx, edi
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 ebp
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [edi + 4]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x268]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1af4]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [eax + 8], ebp
mov eax, dword [eax + 4]
mov byte [eax + ebp], bl
jmp 0x40230f
mov dword [esp + 0x10], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, ebx
je 0x402329
mov ecx, eax
push ecx
call esi
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x402334
push eax
call esi
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40233f
push eax
call esi
mov ecx, dword [esp + 0x1ae8]
pop esi
cmp ecx, ebx
je 0x402367
mov al, byte [ecx - 1]
cmp al, bl
je 0x40235d
cmp al, 0xff
je 0x40235d
dec al
mov byte [ecx - 1], al
jmp 0x402367
dec ecx
push ecx
call fcn.00402780
add esp, 4
mov ecx, dword [esp + 0x1ad0]
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1ad0
ret