Function at 0x10017870
Capabilities:
Check http status code
Make an http request with a cookie
Resolve function by parsing pe exports
Send data
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b408
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2a204
call fcn.1000e2f0
mov eax, dword [0x100213d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x3c], 0
jne 0x100178bc
mov eax, 4
jmp 0x100181c4
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x3c]
call fcn.100199d0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x100178da
mov eax, 4
jmp 0x100181c4
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 0x20]
call eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x2328
jle 0x10017902
mov eax, 7
jmp 0x100181c4
cmp dword [ebp + 0x14], 1
jle 0x10017912
mov eax, 3
jmp 0x100181c4
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x68]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x70], 0
je 0x1001792f
mov eax, dword [ebp - 0x20]
or eax, 0x80000
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x4c], 0
jne 0x10017943
mov eax, dword [ebp - 0x20]
or eax, 0x200000
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 0x1001cc4c
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0x1001cc48
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x74], 0
je 0x1001796a
mov dword [ebp - 0x2c], str.POST
jmp 0x1001797a
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x64], 0
je 0x1001797a
mov dword [ebp - 0x2c], str.HEAD
push 0
mov eax, dword [ebp - 0x20]
or eax, 0x80000000
or eax, 0x100
or eax, 0x4000000
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x60]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x6c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x38], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x38], 0
jne 0x100179cc
call fcn.10013fe0
jmp 0x100181c4
mov ecx, dword [ebp - 0x18]
call fcn.10017260
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x100179f2
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 0x20]
call eax
mov eax, dword [ebp - 0x30]
jmp 0x100181c4
mov al, byte [0x1001c2f4]
mov byte [ebp - 0x4e50], al
push 0x4e1f
push 0
lea eax, [ebp - 0x4e4f]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x10017a38
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.Range:_bytes_I64u__r_n
lea edx, [ebp - 0x4e50]
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x10
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x70], 0
je 0x10017a6b
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x70]
push ecx
push str.Cookie:__s_r_n
lea edx, [ebp - 0x4e50]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x4e50]
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x74], 0
je 0x10017a88
push str.Content_Type:_application_x_www_form_urlencoded_r_n
lea eax, [ebp - 0x4e50]
push eax
call sub.MSVCR100.dll_strcat
add esp, 8
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x78], 0
je 0x10017aa7
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x78]
push ecx
lea edx, [ebp - 0x4e50]
push edx
call sub.MSVCR100.dll_strcat
add esp, 8
cmp dword [ebp + 0x14], 0
jne 0x10017cc6
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x60], 0
je 0x10017ac8
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x60]
mov dword [ebp - 0x2a214], edx
jmp 0x10017ad2
mov dword [ebp - 0x2a214], 0x1001c358
mov eax, dword [ebp - 0x2a214]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x6c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push str._s__s__s_r_nReferer:__s
lea edx, [ebp - 0x1ade0]
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x18
movsx eax, byte [ebp - 0x4e50]
test eax, eax
je 0x10017b49
push 0x1001cbc0
lea eax, [ebp - 0x1ade0]
push eax
call sub.MSVCR100.dll_strcat
add esp, 8
lea eax, [ebp - 0x4e50]
push eax
lea ecx, [ebp - 0x1ade0]
push ecx
call sub.MSVCR100.dll_strcat
add esp, 8
lea eax, [ebp - 0x1ade0]
push eax
call sub.MSVCR100.dll_strlen
add esp, 4
mov byte [ebp + eax - 0x1ade2], 0
mov eax, dword [ebp - 0x20]
and eax, 0x80000
jne 0x10017c4e
mov dword [ebp - 0x1d4f4], 0x2710
lea ecx, [ebp - 0x20158]
call fcn.1000f040
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1d4f4]
push eax
lea ecx, [ebp - 0x1d4f0]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x3c]
call fcn.10019ab0
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x3c]
call fcn.10019a90
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x68]
and ecx, 0x800000
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 3
push ecx
lea ecx, [ebp - 0x20158]
call fcn.1000f700
mov dword [ebp - 0x1d4f4], 0x2710
mov byte [ebp - 0x22868], 0
lea eax, [ebp - 0x1d4f4]
push eax
lea ecx, [ebp - 0x22868]
push ecx
push 0
lea edx, [ebp - 0x1d4f0]
push edx
call dword [sym.imp.WININET.dll_InternetGetCookieA]
movsx eax, byte [ebp - 0x22868]
test eax, eax
je 0x10017c3c
push 0x1001cbc0
lea eax, [ebp - 0x1ade0]
push eax
call sub.MSVCR100.dll_strcat
add esp, 8
push str.Cookie:
lea eax, [ebp - 0x1ade0]
push eax
call sub.MSVCR100.dll_strcat
add esp, 8
lea eax, [ebp - 0x22868]
push eax
lea ecx, [ebp - 0x1ade0]
push ecx
call sub.MSVCR100.dll_strcat
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20158]
call fcn.1000f060
push str._r_nHost:
lea eax, [ebp - 0x1ade0]
push eax
call sub.MSVCR100.dll_strcat
add esp, 8
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x3c]
call fcn.10019a90
push eax
lea ecx, [ebp - 0x1ade0]
push ecx
call sub.MSVCR100.dll_strcat
add esp, 8
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x74], 0
je 0x10017cb0
push 0x1001cbc0
lea eax, [ebp - 0x1ade0]
push eax
call sub.MSVCR100.dll_strcat
add esp, 8
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x74]
push ecx
lea edx, [ebp - 0x1ade0]
push edx
call sub.MSVCR100.dll_strcat
add esp, 8
lea eax, [ebp - 0x1ade0]
push eax
push 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x18]
call fcn.10018210
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x74], 0
je 0x10017cec
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x2a214], eax
jmp 0x10017cf6
mov dword [ebp - 0x2a214], 0
mov eax, dword [ebp - 0x2a214]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x74]
push edx
push 0xffffffffffffffff
movsx eax, byte [ebp - 0x4e50]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x4e50]
and eax, ecx
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x10017d57
call fcn.10013fe0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x38]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.100197a0
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 0x20]
call eax
mov eax, dword [ebp - 0x30]
jmp 0x100181c4
mov dword [ebp - 0x24f7c], 0x2710
mov dword [ebp - 0x24f80], 0
lea eax, [ebp - 0x24f80]
push eax
lea ecx, [ebp - 0x24f7c]
push ecx
lea edx, [ebp - 0x24f78]
push edx
push 0x16
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10017e4d
mov dword [ebp - 0x24f84], 0
lea eax, [ebp - 0x24f78]
mov dword [ebp - 0x24f88], eax
cmp dword [ebp - 0x24f88], 0
je 0x10017e15
push 0xa
mov eax, dword [ebp - 0x24f88]
push eax
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
mov dword [ebp - 0x24f88], eax
cmp dword [ebp - 0x24f88], 0
je 0x10017e13
mov eax, dword [ebp - 0x24f88]
movsx ecx, byte [eax]
cmp ecx, 0xd
je 0x10017df3
mov eax, dword [ebp - 0x24f88]
movsx ecx, byte [eax]
cmp ecx, 0xa
jne 0x10017e04
mov eax, dword [ebp - 0x24f88]
add eax, 1
mov dword [ebp - 0x24f88], eax
jmp 0x10017dd7
mov eax, dword [ebp - 0x24f84]
add eax, 1
mov dword [ebp - 0x24f84], eax
jmp 0x10017dad
cmp dword [ebp - 0x24f84], 0
je 0x10017e27
cmp dword [ebp - 0x24f84], 1
jne 0x10017e4d
mov eax, dword [ebp + 0x14]
add eax, 1
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.10017870
jmp 0x100181c4
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x38]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.100197a0
mov dword [ebp - 0x24f90], 4
push 0
lea eax, [ebp - 0x24f90]
push eax
lea ecx, [ebp - 0x24f8c]
push ecx
push 0x20000013
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x10017e96
call fcn.10013fe0
jmp 0x100181c4
cmp dword [ebp - 0x24f8c], 0xc8
jb 0x10017eb2
cmp dword [ebp - 0x24f8c], 0x12c
jb 0x10017fed
mov eax, dword [ebp - 0x24f8c]
push eax
call fcn.10014000
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x12
jne 0x10017fe5
mov dword [ebp - 0x24f94], 0
push 0
lea eax, [ebp - 0x24f94]
push eax
push 0
push 0x21
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x38]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10017fdb
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x18], 0
je 0x10017f2f
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x2a210], ecx
mov edx, dword [ebp - 0x2a210]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x18], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x24f94]
add eax, 1
mov dword [ebp - 0x24f94], eax
mov ecx, dword [ebp - 0x24f94]
push ecx
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x2a20c], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2a20c]
mov dword [edx + 0x18], eax
jmp 0x10017f85
mov dword [ebp - 4], 0xffffffff
jmp 0x10017f99
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x18], 0
jne 0x10017fac
mov eax, 0x17
jmp 0x100181c4
push 0
lea eax, [ebp - 0x24f94]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
push edx
push 0x21
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x10017fd9
mov eax, 0x15
jmp 0x100181c4
jmp 0x10017fe5
mov eax, 0x15
jmp 0x100181c4
mov eax, dword [ebp - 0x30]
jmp 0x100181c4
mov dword [ebp - 0x25380], 0x3e8
push 0
lea eax, [ebp - 0x25380]
push eax
lea ecx, [ebp - 0x2537c]
push ecx
push 5
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1001806b
lea eax, [ebp - 0x2537c]
push eax
call dword [sym.imp.MSVCR100.dll__atoi64]
add esp, 4
mov dword [ebp - 0x25388], eax
mov dword [ebp - 0x25384], edx
cmp dword [ebp - 0x25384], 0
jg 0x10018054
jl 0x1001804a
cmp dword [ebp - 0x25388], 0
jae 0x10018054
mov eax, 0x15
jmp 0x100181c4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x25388]
mov dword [eax + 0x30], ecx
mov edx, dword [ebp - 0x25384]
mov dword [eax + 0x34], edx
jmp 0x1001807c
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x30], 0xffffffff
mov dword [eax + 0x34], 0xffffffff
mov dword [ebp - 0x30], 0
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x100180a6
mov ecx, dword [ebp - 0x18]
call fcn.100172c0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xf
jne 0x100180a4
mov eax, dword [ebp - 0x30]
jmp 0x100181c4
jmp 0x1001810e
mov dword [ebp - 0x27a9c], 0x2710
push 0
lea eax, [ebp - 0x27a9c]
push eax
lea ecx, [ebp - 0x27a98]
push ecx
push 0x2a
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10018104
push str.bytes
lea eax, [ebp - 0x27a98]
push eax
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
jne 0x100180f8
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x14], 0
jmp 0x10018102
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x14], 1
jmp 0x1001810e
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x14], 2
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x2c], 0
mov dword [ebp - 0x2a1b0], 0x2710
push 0
lea eax, [ebp - 0x2a1b0]
push eax
lea ecx, [ebp - 0x2a1ac]
push ecx
push 1
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1001816b
lea eax, [ebp - 0x2a1ac]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x1c
call fcn.10001567
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x20], 1
mov dword [ebp - 0x2a1c4], 0x10
push 0
lea eax, [ebp - 0x2a1c4]
push eax
lea ecx, [ebp - 0x2a1c0]
push ecx
push 0x4000000b
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x100181b9
mov eax, dword [ebp - 0x18]
add eax, 0x24
push eax
lea ecx, [ebp - 0x2a1c0]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x2c], 1
mov ecx, dword [ebp - 0x18]
call fcn.10017580
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000dd44
mov esp, ebp
pop ebp
ret 0x10