Function at 0x401270
Capabilities:
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x402a09
push eax
mov eax, 0x1b5c
mov dword fs:[0], esp
call fcn.004027e0
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x201]
mov byte [esp + 0x200], 0
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 + 0x181]
mov byte [esp + 0x180], 0
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 + 0x101]
mov byte [esp + 0x100], 0
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 + 0x1349]
mov byte [esp + 0x1348], 0
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 + 0xb25]
mov byte [esp + 0xb24], 0
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 + 0x48]
xor ebp, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x200]
lea ecx, [esp + 0x180]
mov dword [esp + 0x54], eax
mov eax, 0x80
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x1348]
lea edx, [esp + 0x100]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x1b80]
mov ebx, 0x824
cmp eax, ebp
mov dword [esp + 0x1b74], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x44], 0x3c
mov dword [esp + 0x58], 0x100
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x74], ebx
jne 0x40139e
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 + 0x44]
push ecx
push ebp
push ebp
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x4018fc
cmp dword [esp + 0x50], 3
jne 0x4018fc
push ebp
push ebp
push ebp
push ebp
push str.down
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x4018fc
mov ecx, dword [esp + 0x5c]
push ebp
push ebp
lea edx, [esp + 0x108]
push 3
lea eax, [esp + 0x18c]
push edx
push eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x214]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x4018fc
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
cmp eax, ebp
lea edx, [esp + 0xb24]
jne 0x40142a
mov edi, 0x40404c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x80200000
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
push 0x4040a8
lea ecx, [esp + 0xb34]
push str.HTTP_1.1
push ecx
push str.HEAD
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push ebp
push ebp
push ebp
push ebp
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4018fc
mov ecx, 0x208
xor eax, eax
lea edi, [esp + 0x301]
mov byte [esp + 0x300], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [esp + 0x18]
push ebp
stosb byte es:[edi], al
lea eax, [esp + 0x34]
lea ecx, [esp + 0x304]
push eax
push ecx
push 0x16
push edx
mov dword [esp + 0x44], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp eax, ebp
je 0x4018fc
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], 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 + 0x300]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x24]
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 0x401526
mov edi, dword [esp + 0x24]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x300]
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 + 0x24]
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 edi, str.filename
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x1b74], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push str.filename
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov esi, eax
mov edi, 0x404028
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push 0x404028
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov ecx, 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 [ecx]
cmp esi, ecx
je 0x401748
sub eax, esi
lea edx, [esp + 0x34]
push eax
push esi
push edx
lea ecx, [esp + 0x2c]
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__::substr_unsigned_int__unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov esi, dword [esp + 0x1b8c]
mov byte [esp + 0x1b74], 2
mov edx, dword [ecx]
mov ecx, esi
push edx
push ebp
push eax
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 + 0x38]
mov byte [esp + 0x1b78], 1
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 [esi + 8]
mov ecx, esi
add eax, 0xfffffff7
push eax
lea eax, [esp + 0x38]
push 9
push eax
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__::substr_unsigned_int__unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x1b74], 3
mov edx, dword [ecx]
mov ecx, esi
push edx
push ebp
push eax
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 + 0x38]
mov byte [esp + 0x1b78], 1
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 [esi + 4]
cmp eax, ebp
je 0x40163f
mov al, byte [eax - 1]
test al, al
je 0x40162d
cmp al, 0xff
je 0x40162d
mov eax, dword [esi + 8]
push ebp
push eax
mov ecx, esi
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_]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x401638
mov byte [eax - 1], 0xff
mov eax, dword [esi + 4]
mov ecx, eax
jmp 0x401645
mov ecx, 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]
cmp byte [ecx], 0x22
jne 0x401692
cmp eax, ebp
je 0x401666
mov al, byte [eax - 1]
test al, al
je 0x401666
cmp al, 0xff
je 0x401666
mov ecx, dword [esi + 8]
push ebp
push ecx
mov ecx, esi
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_]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x401671
mov byte [eax - 1], 0xff
mov edi, dword [esi + 4]
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
cmp edi, ebp
jne 0x401684
xor edi, edi
jmp 0x401687
sub edi, dword [esi + 4]
push 1
push edi
mov ecx, esi
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__::erase_unsigned_int__unsigned_int_]
mov ecx, dword [esi + 8]
lea edi, [ecx - 1]
cmp ecx, edi
jb 0x4016ca
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x4016ca
mov al, byte [eax - 1]
test al, al
je 0x4016b8
cmp al, 0xff
je 0x4016b8
push ebp
push ecx
mov ecx, esi
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_]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x4016c3
mov byte [eax - 1], 0xff
mov eax, dword [esi + 4]
add eax, edi
jmp 0x4016cf
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]
cmp byte [eax], 0x22
jne 0x4018d6
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x4016f7
mov al, byte [eax - 1]
test al, al
je 0x4016f7
cmp al, 0xff
je 0x4016f7
mov edx, dword [esi + 8]
push ebp
push edx
mov ecx, esi
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_]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x401702
mov byte [eax - 1], 0xff
mov ecx, dword [esi + 4]
cmp ecx, ebp
jne 0x40170d
xor eax, eax
jmp 0x401712
mov eax, dword [esi + 8]
add eax, ecx
mov ecx, esi
lea edi, [eax - 1]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
cmp edi, ebp
jne 0x401733
xor edi, edi
push 1
push edi
mov ecx, esi
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__::erase_unsigned_int__unsigned_int_]
jmp 0x4018d6
mov eax, dword [esi + 4]
push 1
sub edi, eax
mov ecx, esi
push edi
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__::erase_unsigned_int__unsigned_int_]
jmp 0x4018d6
push 1
lea eax, [esp + 0x17]
push ecx
push eax
lea ecx, [esp + 0x1b88]
mov byte [esp + 0x1f], 0x2f
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::rfind_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [ecx]
je 0x4017dc
mov edx, dword [esp + 0x1b84]
lea ecx, [esp + 0x1b7c]
sub edx, eax
dec edx
inc eax
push edx
push eax
lea eax, [esp + 0x3c]
push eax
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__::substr_unsigned_int__unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x1b74], 4
mov edx, dword [ecx]
mov ecx, dword [esp + 0x1b8c]
push edx
push ebp
push eax
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_]
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x4018d6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4017ce
cmp al, 0xff
je 0x4017ce
dec al
mov byte [ecx], al
jmp 0x4018d6
push ecx
call fcn.00402780
add esp, 4
jmp 0x4018d6
push ebp
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x89]
mov byte [esp + 0x88], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 8
stosb byte es:[edi], al
lea eax, [esp + 0x80]
push 0xa
push eax
call dword [sym.imp.MSVCRT.dll_rand]
push eax
call dword [sym.imp.MSVCRT.dll__itoa]
lea edi, [esp + 0x8c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov ebp, dword [esp + 0x1b8c]
push 1
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
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 0x40186f
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x80]
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 [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [ebx + eax], 0
mov edi, str..exe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
sub edx, ecx
cmp edx, esi
ja 0x401897
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x4018d6
mov ebx, dword [ebp + 8]
push 0
add ebx, esi
mov ecx, ebp
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 0x4018d6
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov ecx, esi
add edi, eax
mov eax, ecx
mov esi, str..exe
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [ebx + ecx], 0
mov ecx, dword [esp + 0x24]
xor ebp, ebp
cmp ecx, ebp
je 0x4018fc
mov al, byte [ecx - 1]
test al, al
je 0x4018f2
cmp al, 0xff
je 0x4018f2
dec al
mov byte [ecx - 1], al
jmp 0x4018fc
dec ecx
push ecx
call fcn.00402780
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, ebp
je 0x401914
push eax
call esi
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x40191f
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40192a
push eax
call esi
mov ecx, dword [esp + 0x1b80]
pop edi
pop esi
cmp ecx, ebp
pop ebp
pop ebx
je 0x401955
mov al, byte [ecx - 1]
test al, al
je 0x40194b
cmp al, 0xff
je 0x40194b
dec al
mov byte [ecx - 1], al
jmp 0x401955
dec ecx
push ecx
call fcn.00402780
add esp, 4
mov ecx, dword [esp + 0x1b5c]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x1b68
ret