Function at 0x10004820
Capabilities:
Prepare http request
Receive http response
Send data
Send http request
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000cc8a
mov eax, dword fs:[0]
push eax
sub esp, 0x73c
mov eax, dword [0x10011484]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x734], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x6f4], esi
mov dword [ebp - 0x71c], esi
mov dword [ebp - 0x738], eax
push 0
push 0x1bb
push 0x10011e48
mov dword [ebp - 4], 0
call fcn.10004480
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x714], eax
test eax, eax
jne 0x100048bc
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi], 0
mov dword [esi + 4], 0
test eax, eax
je 0x10005451
push eax
jmp 0x10005448
lea ecx, [ebp - 0x6dd]
call fcn.10003370
mov edi, eax
cmp byte [edi + 0x19], 0
je 0x100048ea
push 0x558bf9a5
push 0x8fbd6dbf
push 0
push 0x19
push edi
call fcn.10001da0
add esp, 0x14
mov byte [edi + 0x19], 0
lea eax, [edi + 0x18]
xor ecx, ecx
lea edx, [ebp - 0x6b0]
cmp edx, eax
ja 0x10004910
lea eax, [ebp - 0x680]
cmp eax, edi
jae 0x10004940
nop dword [eax]
nop word [eax + eax]
movq xmm0, qword [ecx + edi]
punpcklbw xmm0, xmm0
psraw xmm0, 8
movups xmmword [ebp + ecx*2 - 0x6b0], xmm0
add ecx, 8
cmp ecx, 0x18
jb 0x10004910
cmp ecx, 0x19
jae 0x10004953
nop dword [eax]
nop word [eax + eax]
movsx ax, byte [ecx + edi]
mov word [ebp + ecx*2 - 0x6b0], ax
inc ecx
cmp ecx, 0x19
jb 0x10004940
movups xmm0, xmmword [ebp - 0x6b0]
mov ax, word [ebp - 0x680]
mov word [ebp - 0x620], ax
movups xmmword [ebp - 0x650], xmm0
movups xmm0, xmmword [ebp - 0x6a0]
movups xmmword [ebp - 0x640], xmm0
movups xmm0, xmmword [ebp - 0x690]
movups xmmword [ebp - 0x630], xmm0
call fcn.10005c60
xor edx, edx
mov edi, 5
div edi
mov eax, dword [edx*4 + 0x10011128]
push eax
call fcn.10005c60
xor edx, edx
div edi
mov eax, dword [edx*4 + 0x10011114]
push eax
push 8
push 3
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x610]
push pe_nt_image_headers32
push eax
call fcn.10003330
add esp, 0x1c
test eax, eax
jle 0x1000542c
cmp eax, 0x200
jae 0x1000542c
lea ecx, [ebp - 0x6dd]
call fcn.10003e40
mov edi, eax
cmp byte [edi + 5], 0
je 0x10004a12
push 0x8bbdb3af
push 0x1b4949a3
push 0
push 5
push edi
call fcn.10001da0
add esp, 0x14
mov byte [edi + 5], 0
movsx eax, byte [edi]
mov word [ebp - 0x730], ax
movsx eax, byte [edi + 1]
mov word [ebp - 0x72e], ax
movsx eax, byte [edi + 2]
mov word [ebp - 0x72c], ax
movsx eax, byte [edi + 3]
push 0x800000
mov word [ebp - 0x72a], ax
movsx ax, byte [edi + 4]
movq xmm0, qword [ebp - 0x730]
push 0
push 0
mov word [ebp - 0x614], ax
lea eax, [ebp - 0x610]
push 0
push eax
lea eax, [ebp - 0x61c]
movq qword [ebp - 0x61c], xmm0
push eax
push dword [ebp - 0x714]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x6f0], eax
test eax, eax
je 0x10004897
push 4
lea ecx, [ebp - 0x748]
mov dword [ebp - 0x748], 0x3300
push ecx
push 0x1f
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x10004897
call fcn.10005c60
mov ecx, 0x3e8
cdq
idiv ecx
mov ecx, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x73c], edx
lea edi, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10004ad0
sub esi, edi
mov edi, dword [ebp - 0x73c]
mov eax, edi
and eax, 0x800000ff
jns 0x10004aef
dec eax
or eax, 0xffffff00
inc eax
lea edx, [ecx + esi]
mov dword [ebp - 0x71c], eax
cmp ecx, edx
jae 0x10004b1d
nop dword [eax]
xor byte [ecx], al
movzx eax, byte [ecx]
add eax, edi
and eax, 0x800000ff
jns 0x10004b15
dec eax
or eax, 0xffffff00
inc eax
inc ecx
cmp ecx, edx
jb 0x10004b00
mov ecx, dword [ebp + 0xc]
push esi
push ecx
lea eax, [ebp - 0x744]
push eax
call fcn.10005790
lea eax, [ebp - 0x704]
mov byte [ebp - 4], 1
push 0x20
push eax
call fcn.10005c10
mov eax, dword [ebp - 0x700]
lea esi, [eax + eax]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push dword [ebp - 0x700]
shr esi, 1
push dword [ebp - 0x704]
mov dword [ebp - 0x6e4], eax
push esi
push eax
lea eax, [ebp - 0x6e8]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
add esp, 0x2c
lea ecx, [ebp - 0x6dd]
call fcn.10003c70
mov esi, eax
cmp byte [esi + 0x2f], 0
je 0x10004ba1
push 0x9bf3d983
push 0xefabd7e7
push 0
push 0x2f
push esi
call fcn.10001da0
add esp, 0x14
mov byte [esi + 0x2f], 0
lea eax, [esi + 0x2e]
xor ecx, ecx
lea edx, [ebp - 0x67c]
cmp edx, eax
ja 0x10004bba
lea eax, [ebp - 0x620]
cmp eax, esi
jae 0x10004c12
movq xmm0, qword [esi]
mov ecx, 0x20
punpcklbw xmm0, xmm0
psraw xmm0, 8
movups xmmword [ebp - 0x67c], xmm0
movq xmm0, qword [esi + 8]
punpcklbw xmm0, xmm0
psraw xmm0, 8
movups xmmword [ebp - 0x66c], xmm0
movq xmm0, qword [esi + 0x10]
punpcklbw xmm0, xmm0
psraw xmm0, 8
movups xmmword [ebp - 0x65c], xmm0
movq xmm0, qword [esi + 0x18]
punpcklbw xmm0, xmm0
psraw xmm0, 8
movups xmmword [ebp - 0x64c], xmm0
movsx ax, byte [ecx + esi]
mov word [ebp + ecx*2 - 0x67c], ax
inc ecx
cmp ecx, 0x2f
jb 0x10004c12
mov ecx, 0x17
lea esi, [ebp - 0x67c]
lea edi, [ebp - 0x6dc]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x6dc]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x6e4]
push esi
push eax
lea eax, [ebp - 0x210]
push pe_nt_image_headers32
push eax
call fcn.10003330
add esp, 0x10
lea eax, [ebp - 0x210]
push 0x20000000
push 0xffffffffffffffff
push eax
push dword [ebp - 0x6f0]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test esi, esi
je 0x10004c86
push esi
call edi
add esp, 4
mov eax, dword [ebp - 0x740]
add eax, 0x200
push eax
mov dword [ebp - 0x6ec], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [ebp - 0x6ec]
mov esi, eax
mov dword [ebp - 0x730], esi
mov dword [ebp - 0x72c], ecx
lea eax, [ebp - 0x70c]
mov byte [ebp - 4], 3
push 5
push eax
call fcn.10005c10
mov dword [ebp - 0x6f8], eax
lea eax, [ebp - 0x724]
mov byte [ebp - 4], 4
push 8
push eax
call fcn.10005c10
add esp, 0x14
mov dword [ebp - 0x6e8], eax
lea ecx, [ebp - 0x6dd]
call fcn.10003b70
mov dword [ebp - 0x6e4], eax
cmp byte [eax + 0x6d], 0
je 0x10004d1f
push 0xb93f2d41
push 0x1bd16de9
push 0
push 0x6d
push eax
call fcn.10001da0
mov ecx, dword [ebp - 0x6e4]
add esp, 0x14
mov byte [ecx + 0x6d], 0
jmp 0x10004d25
mov ecx, dword [ebp - 0x6e4]
mov edx, dword [ebp - 0x73c]
lea eax, [edx*8 + 1]
mov edx, dword [ebp - 0x6e8]
push eax
mov eax, dword [ebp - 0x6f8]
push dword [eax]
mov eax, dword [ebp - 0x704]
push eax
push dword [ebp - 0x744]
push dword [edx]
push eax
push ecx
push dword [ebp - 0x6ec]
push esi
call fcn.100032f0
mov dword [ebp - 0x6e4], eax
add esp, 0x24
mov eax, dword [ebp - 0x724]
test eax, eax
je 0x10004d77
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x70c]
mov byte [ebp - 4], 3
test eax, eax
je 0x10004d8b
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x6e4]
test eax, eax
jle 0x100053d6
cmp eax, dword [ebp - 0x6ec]
jae 0x100053d6
push 0x80
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x724], eax
mov dword [ebp - 0x720], 0x80
lea ecx, [ebp - 0x6dd]
mov byte [ebp - 4], 5
call fcn.10003740
mov dword [ebp - 0x6e8], eax
cmp byte [eax + 0xb], 0
je 0x10004dff
push 0x298b4d93
push 0xcf65775b
push 0
push 0xb
push eax
call fcn.10001da0
mov eax, dword [ebp - 0x6e8]
add esp, 0x14
mov byte [eax + 0xb], 0
push dword [ebp - 0x704]
push eax
push 0x80
push dword [ebp - 0x724]
call fcn.100032f0
add esp, 0x10
test eax, eax
jle 0x1000536c
cmp eax, 0x80
jae 0x1000536c
mov ecx, dword [ebp - 0x6e4]
add ecx, eax
mov dword [ebp - 0x70c], 0
mov dword [ebp - 0x6e4], ecx
mov dword [ebp - 0x708], 0
cmp dword [ebp - 0x738], 0
mov byte [ebp - 4], 6
je 0x10004ef8
cmp dword [ebp - 0x734], 0
je 0x10004ef8
push pe_nt_image_headers32
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x70c], eax
lea ecx, [ebp - 0x6dd]
mov dword [ebp - 0x708], pe_nt_image_headers32
call fcn.100038c0
mov dword [ebp - 0x6e8], eax
cmp byte [eax + 0x6c], 0
je 0x10004ec2
push 0xdf03b5cb
push 0x4d61d7db
push 0
push 0x6c
push eax
call fcn.10001da0
mov eax, dword [ebp - 0x6e8]
add esp, 0x14
mov byte [eax + 0x6c], 0
push dword [ebp - 0x734]
push dword [ebp - 0x704]
push eax
push pe_nt_image_headers32
push dword [ebp - 0x70c]
call fcn.100032f0
add esp, 0x14
test eax, eax
jle 0x10004f4e
cmp eax, 0x100
jae 0x10004f4e
add eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x6e4]
add ecx, eax
push 0
push ecx
push 0
push 0
push 0
push 0
push dword [ebp - 0x6f0]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov ecx, eax
mov dword [ebp - 0x710], 0
test ecx, ecx
je 0x10004fcb
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004f28
lea eax, [ebp - 0x710]
sub ecx, edx
push eax
push ecx
push esi
mov esi, dword [ebp - 0x6f0]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov ecx, eax
jmp 0x10004fd1
mov esi, dword [ebp - 0x6f4]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x70c]
movq qword [esi], xmm0
mov dword [esi], 0
mov dword [esi + 4], 0
test eax, eax
je 0x10004f78
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x724]
test eax, eax
je 0x10004f88
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x730]
test eax, eax
je 0x10004f98
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x704]
test eax, eax
je 0x10004fa8
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x744]
test eax, eax
je 0x10004fb8
push eax
call edi
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10005451
push eax
call edi
jmp 0x1000544e
mov esi, dword [ebp - 0x6f0]
cmp dword [ebp - 0x738], 0
je 0x1000503c
cmp dword [ebp - 0x734], 0
je 0x1000503c
test ecx, ecx
je 0x10005070
mov edx, dword [ebp - 0x70c]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x6e8], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005000
sub ecx, dword [ebp - 0x6e8]
lea eax, [ebp - 0x710]
push eax
push ecx
push edx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov ecx, eax
test ecx, ecx
je 0x10005070
lea eax, [ebp - 0x710]
push eax
push dword [ebp + 0x1c]
push dword [ebp - 0x738]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov ecx, eax
test ecx, ecx
je 0x10005070
mov edx, dword [ebp - 0x724]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x6e8], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005051
sub ecx, dword [ebp - 0x6e8]
lea eax, [ebp - 0x710]
push eax
push ecx
push edx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov ecx, eax
xor eax, eax
xor esi, esi
mov dword [ebp - 0x6fc], esi
mov dword [ebp - 0x6e4], eax
mov dword [ebp - 0x6f8], eax
mov byte [ebp - 4], 7
test ecx, ecx
je 0x100051bf
push eax
push dword [ebp - 0x6f0]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x100051bf
lea eax, [ebp - 0x6ec]
mov dword [ebp - 0x6ec], esi
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x6f0]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x100051bf
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebp - 0x6ec]
test eax, eax
je 0x100051b9
test esi, esi
jne 0x10005127
mov edi, eax
push eax
mov dword [ebp - 0x6e4], edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push dword [ebp - 0x6ec]
mov esi, eax
mov dword [ebp - 0x6f8], edi
lea eax, [ebp - 0x410]
mov dword [ebp - 0x6fc], esi
push eax
push esi
call fcn.1000aab0
add esp, 0x10
jmp 0x10005188
mov edi, dword [ebp - 0x6e4]
add edi, eax
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push dword [ebp - 0x6e4]
mov esi, eax
push dword [ebp - 0x6fc]
push esi
call fcn.1000aab0
push dword [ebp - 0x6ec]
lea eax, [ebp - 0x410]
push eax
mov eax, dword [ebp - 0x6e4]
add eax, esi
push eax
call fcn.1000aab0
push dword [ebp - 0x6fc]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, edi
mov dword [ebp - 0x6fc], esi
add esp, 0x20
mov dword [ebp - 0x6e4], eax
mov dword [ebp - 0x6f8], eax
lea eax, [ebp - 0x6ec]
mov dword [ebp - 0x6ec], 0
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x6f0]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x100050e0
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push dword [ebp - 0x6f0]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x714]
call esi
mov eax, dword [ebp - 0x6fc]
test eax, eax
je 0x100052ef
mov ecx, dword [ebp - 0x6e4]
push ecx
push eax
lea eax, [ebp - 0x718]
push eax
call fcn.100055b0
mov edx, dword [ebp - 0x718]
add esp, 0xc
mov ecx, dword [ebp - 0x714]
lea eax, [edx + ecx]
mov dword [ebp - 0x6e8], eax
cmp edx, eax
jae 0x10005262
mov esi, dword [ebp - 0x71c]
nop dword [eax]
movzx eax, byte [edx]
xor esi, eax
mov ecx, esi
mov esi, dword [ebp - 0x73c]
add esi, eax
mov dword [ebp - 0x71c], ecx
and esi, 0x800000ff
jns 0x10005245
dec esi
or esi, 0xffffff00
inc esi
mov ecx, dword [ebp - 0x71c]
mov byte [edx], cl
inc edx
cmp edx, dword [ebp - 0x6e8]
jb 0x10005220
mov ecx, dword [ebp - 0x714]
mov edx, dword [ebp - 0x718]
mov esi, dword [ebp - 0x6f4]
push dword [ebp - 0x6fc]
mov dword [ebp - 0x718], 0
mov dword [ebp - 0x714], 0
mov dword [esi], edx
mov dword [esi + 4], ecx
call edi
mov eax, dword [ebp - 0x70c]
add esp, 4
test eax, eax
je 0x1000529c
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x724]
test eax, eax
je 0x100052ac
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x730]
test eax, eax
je 0x100052bc
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x704]
test eax, eax
je 0x100052cc
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x744]
test eax, eax
je 0x100052dc
push eax
call edi
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10005451
push eax
call edi
jmp 0x1000544e
mov esi, dword [ebp - 0x6f4]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x70c]
movq qword [esi], xmm0
mov dword [esi], 0
mov dword [esi + 4], 0
test eax, eax
je 0x10005319
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x724]
test eax, eax
je 0x10005329
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x730]
test eax, eax
je 0x10005339
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x704]
test eax, eax
je 0x10005349
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x744]
test eax, eax
je 0x10005359
push eax
call edi
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10005451
push eax
call edi
jmp 0x1000544e
mov esi, dword [ebp - 0x6f4]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x724]
movq qword [esi], xmm0
mov dword [esi], 0
mov dword [esi + 4], 0
test eax, eax
je 0x10005396
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x730]
test eax, eax
je 0x100053a6
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x704]
test eax, eax
je 0x100053b6
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x744]
test eax, eax
je 0x100053c6
push eax
call edi
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10005451
push eax
call edi
jmp 0x1000544e
mov esi, dword [ebp - 0x6f4]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x730]
movq qword [esi], xmm0
mov dword [esi], 0
mov dword [esi + 4], 0
test eax, eax
je 0x10005400
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x704]
test eax, eax
je 0x10005410
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x744]
test eax, eax
je 0x10005420
push eax
call edi
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10005451
push eax
call edi
jmp 0x1000544e
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi], 0
mov dword [esi + 4], 0
test ecx, ecx
je 0x10005451
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10009b64
mov esp, ebp
pop ebp
ret