Function at 0x10010680
Capabilities:
Check http status code
Make an http request with a cookie
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012cac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0xd500
call fcn.10011d20
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x3c], 0
jne 0x100106bf
mov eax, 4
jmp 0x10010def
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x3c]
call fcn.100117c0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x100106dd
mov eax, 4
jmp 0x10010def
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
call dword [edx + 0x18]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x2328
jle 0x10010703
mov eax, 7
jmp 0x10010def
cmp dword [ebp + 0x14], 1
jle 0x10010713
mov eax, 3
jmp 0x10010def
mov dword [ebp - 0x20], 0x10013538
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x4c], 0
je 0x10010736
mov dword [ebp - 0xd50c], str.HEAD
jmp 0x10010740
mov dword [ebp - 0xd50c], 0x1001352c
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x50]
or edx, 0x200000
or edx, 0x80000000
or dh, 1
or edx, 0x4000000
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x48]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xd50c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x38], 0
jne 0x1001079e
call fcn.1000e210
jmp 0x10010def
mov ecx, dword [ebp - 0x14]
call fcn.100101d0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x100107c2
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
call dword [edx + 0x18]
mov eax, dword [ebp - 0x24]
jmp 0x10010def
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.Range:_bytes_I64u__r_n
lea edx, [ebp - 0x40c]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
cmp dword [ebp + 0x14], 0
jne 0x100109bd
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x48], 0
je 0x10010800
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x48]
mov dword [ebp - 0xd50c], edx
jmp 0x1001080a
mov dword [ebp - 0xd50c], 0x10013510
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x4c], 0
je 0x1001081f
mov dword [ebp - 0xd510], str.HEAD
jmp 0x10010829
mov dword [ebp - 0xd510], 0x1001352c
mov ecx, dword [ebp - 0xd50c]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xd510]
push edx
push str._s__s__s_r_nReferer:__s
lea eax, [ebp - 0x2b1c]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
test eax, eax
je 0x100108a2
push 0x100134f4
lea eax, [ebp - 0x2b1c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x2b1c]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x2b1c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov byte [ebp + eax - 0x2b1e], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x50]
and ecx, 0x80000
test ecx, ecx
jne 0x100109a9
mov dword [ebp - 0x5230], 0x2710
lea ecx, [ebp - 0x7e94]
call fcn.1000b740
mov dword [ebp - 4], 0
lea eax, [ebp - 0x5230]
push eax
lea ecx, [ebp - 0x522c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x3c]
call fcn.100118a0
push eax
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x3c]
call fcn.10011880
push eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x50]
and eax, 0x800000
neg eax
sbb eax, eax
neg eax
add eax, 3
push eax
lea ecx, [ebp - 0x7e94]
call fcn.1000bdf0
mov dword [ebp - 0x5230], 0x2710
mov byte [ebp - 0xa5a4], 0
lea eax, [ebp - 0x5230]
push eax
lea ecx, [ebp - 0xa5a4]
push ecx
push 0
lea edx, [ebp - 0x522c]
push edx
call dword [sym.imp.WININET.dll_InternetGetCookieA]
movsx eax, byte [ebp - 0xa5a4]
test eax, eax
je 0x10010997
push 0x100134f4
lea eax, [ebp - 0x2b1c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push str.Cookie:
lea eax, [ebp - 0x2b1c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0xa5a4]
push eax
lea ecx, [ebp - 0x2b1c]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7e94]
call fcn.1000b7a0
lea eax, [ebp - 0x2b1c]
push eax
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
call dword [edx + 8]
mov ecx, dword [ebp - 0x14]
call fcn.10010e10
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
test eax, eax
je 0x100109dd
lea ecx, [ebp - 0x40c]
mov dword [ebp - 0xd50c], ecx
jmp 0x100109e7
mov dword [ebp - 0xd50c], 0
push 0
push 0
push 0xffffffffffffffff
mov edx, dword [ebp - 0xd50c]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x10010a2f
call fcn.1000e210
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x38]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.10011c30
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
call dword [edx + 0x18]
mov eax, dword [ebp - 0x24]
jmp 0x10010def
mov dword [ebp - 0xccb8], 0x2710
mov dword [ebp - 0xccbc], 0
lea eax, [ebp - 0xccbc]
push eax
lea ecx, [ebp - 0xccb8]
push ecx
lea edx, [ebp - 0xccb4]
push edx
push 0x16
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10010b25
mov dword [ebp - 0xccc0], 0
lea eax, [ebp - 0xccb4]
mov dword [ebp - 0xccc4], eax
cmp dword [ebp - 0xccc4], 0
je 0x10010aed
push 0xa
mov eax, dword [ebp - 0xccc4]
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
mov dword [ebp - 0xccc4], eax
cmp dword [ebp - 0xccc4], 0
je 0x10010aeb
mov eax, dword [ebp - 0xccc4]
movsx ecx, byte [eax]
cmp ecx, 0xd
je 0x10010acb
mov eax, dword [ebp - 0xccc4]
movsx ecx, byte [eax]
cmp ecx, 0xa
jne 0x10010adc
mov eax, dword [ebp - 0xccc4]
add eax, 1
mov dword [ebp - 0xccc4], eax
jmp 0x10010aaf
mov eax, dword [ebp - 0xccc0]
add eax, 1
mov dword [ebp - 0xccc0], eax
jmp 0x10010a85
cmp dword [ebp - 0xccc0], 0
je 0x10010aff
cmp dword [ebp - 0xccc0], 1
jne 0x10010b25
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 - 0x14]
call fcn.10010680
jmp 0x10010def
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x38]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.10011c30
mov dword [ebp - 0xcccc], 4
push 0
lea eax, [ebp - 0xcccc]
push eax
lea ecx, [ebp - 0xccc8]
push ecx
push 0x20000013
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x10010b6e
call fcn.1000e210
jmp 0x10010def
cmp dword [ebp - 0xccc8], 0xc8
jb 0x10010b8a
cmp dword [ebp - 0xccc8], 0x12c
jb 0x10010cb6
mov eax, dword [ebp - 0xccc8]
push eax
call fcn.1000e230
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x12
jne 0x10010cae
mov dword [ebp - 0xccd0], 0
push 0
lea eax, [ebp - 0xccd0]
push eax
push 0
push 0x21
mov ecx, dword [ebp - 0x14]
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 0x10010ca4
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 0
je 0x10010c07
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0xd4c0], ecx
mov edx, dword [ebp - 0xd4c0]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x14], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xccd0]
add eax, 1
mov dword [ebp - 0xccd0], eax
mov ecx, dword [ebp - 0xccd0]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xd4c4], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xd4c4]
mov dword [edx + 0x14], eax
jmp 0x10010c5b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 0
jne 0x10010c75
mov eax, 0x17
jmp 0x10010def
push 0
lea eax, [ebp - 0xccd0]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x14]
push edx
push 0x21
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x10010ca2
mov eax, 0x15
jmp 0x10010def
jmp 0x10010cae
mov eax, 0x15
jmp 0x10010def
mov eax, dword [ebp - 0x24]
jmp 0x10010def
mov dword [ebp - 0xd0bc], 0x3e8
push 0
lea eax, [ebp - 0xd0bc]
push eax
lea ecx, [ebp - 0xd0b8]
push ecx
push 5
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10010cfe
lea eax, [ebp - 0xd0b8]
push eax
call dword [sym.imp.MSVCRT.dll__atoi64]
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], edx
jmp 0x10010d0f
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x30], 0xffffffff
mov dword [eax + 0x34], 0xffffffff
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
test eax, eax
je 0x10010d39
mov ecx, dword [ebp - 0x14]
call fcn.10010210
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xf
jne 0x10010d39
mov eax, dword [ebp - 0x24]
jmp 0x10010def
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x1c], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x28], 0
mov dword [ebp - 0xd4a8], 0x3e8
push 0
lea eax, [ebp - 0xd4a8]
push eax
lea ecx, [ebp - 0xd4a4]
push ecx
push 1
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10010d96
lea eax, [ebp - 0xd4a4]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x18
call fcn.10002598
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x1c], 1
mov dword [ebp - 0xd4bc], 0x10
push 0
lea eax, [ebp - 0xd4bc]
push eax
lea ecx, [ebp - 0xd4b8]
push ecx
push 0x4000000b
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10010de4
mov eax, dword [ebp - 0x14]
add eax, 0x20
push eax
lea ecx, [ebp - 0xd4b8]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x28], 1
mov ecx, dword [ebp - 0x14]
call fcn.10010480
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10