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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bdaa
mov eax, dword fs:[0]
push eax
sub esp, 0x73c
mov eax, dword [0x410654]
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 0x410918
mov dword [ebp - 4], 0
call fcn.00403940
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x714], eax
test eax, eax
jne 0x40404c
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 0x404be1
push eax
jmp 0x404bd8
lea ecx, [ebp - 0x6dd]
call fcn.00402a30
mov edi, eax
cmp byte [edi + 0x19], 0
je 0x40407a
push 0x558bf9a5
push 0x8fbd6dbf
push 0
push 0x19
push edi
call fcn.00401450
add esp, 0x14
mov byte [edi + 0x19], 0
lea eax, [edi + 0x18]
xor ecx, ecx
lea edx, [ebp - 0x6b0]
cmp edx, eax
ja 0x4040a0
lea eax, [ebp - 0x680]
cmp eax, edi
jae 0x4040d0
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 0x4040a0
cmp ecx, 0x19
jae 0x4040e3
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 0x4040d0
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.00405930
xor edx, edx
mov edi, 5
div edi
mov eax, dword [edx*4 + 0x410168]
push eax
call fcn.00405930
xor edx, edx
div edi
mov eax, dword [edx*4 + 0x410154]
push eax
push 7
push edi
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x610]
push 0x100
push eax
call fcn.004029f0
add esp, 0x1c
test eax, eax
jle 0x404bbc
cmp eax, 0x200
jae 0x404bbc
lea ecx, [ebp - 0x6dd]
call fcn.00403520
mov edi, eax
cmp byte [edi + 5], 0
je 0x4041a1
push 0x8bbdb3af
push 0x1b4949a3
push 0
push 5
push edi
call fcn.00401450
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 0x404027
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 0x404027
call fcn.00405930
mov ecx, 0x3e8
cdq
idiv ecx
mov ecx, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x73c], edx
lea edi, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x404260
sub esi, edi
mov edi, dword [ebp - 0x73c]
mov eax, edi
and eax, 0x800000ff
jns 0x40427f
dec eax
or eax, 0xffffff00
inc eax
lea edx, [ecx + esi]
mov dword [ebp - 0x71c], eax
cmp ecx, edx
jae 0x4042ad
nop dword [eax]
xor byte [ecx], al
movzx eax, byte [ecx]
add eax, edi
and eax, 0x800000ff
jns 0x4042a5
dec eax
or eax, 0xffffff00
inc eax
inc ecx
cmp ecx, edx
jb 0x404290
mov ecx, dword [ebp + 0xc]
push esi
push ecx
lea eax, [ebp - 0x744]
push eax
call fcn.004051a0
lea eax, [ebp - 0x704]
mov byte [ebp - 4], 1
push 0x20
push eax
call fcn.00405880
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.00403350
mov esi, eax
cmp byte [esi + 0x2f], 0
je 0x404331
push 0x9bf3d983
push 0xefabd7e7
push 0
push 0x2f
push esi
call fcn.00401450
add esp, 0x14
mov byte [esi + 0x2f], 0
lea eax, [esi + 0x2e]
xor ecx, ecx
lea edx, [ebp - 0x67c]
cmp edx, eax
ja 0x40434a
lea eax, [ebp - 0x620]
cmp eax, esi
jae 0x4043a2
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 0x4043a2
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 0x100
push eax
call fcn.004029f0
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 0x404416
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.00405880
mov dword [ebp - 0x6f8], eax
lea eax, [ebp - 0x724]
mov byte [ebp - 4], 4
push 8
push eax
call fcn.00405880
add esp, 0x14
mov dword [ebp - 0x6e8], eax
lea ecx, [ebp - 0x6dd]
call fcn.00403250
mov dword [ebp - 0x6e4], eax
cmp byte [eax + 0x6d], 0
je 0x4044af
push 0xb93f2d41
push 0x1bd16de9
push 0
push 0x6d
push eax
call fcn.00401450
mov ecx, dword [ebp - 0x6e4]
add esp, 0x14
mov byte [ecx + 0x6d], 0
jmp 0x4044b5
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.004029b0
mov dword [ebp - 0x6e4], eax
add esp, 0x24
mov eax, dword [ebp - 0x724]
test eax, eax
je 0x404507
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x70c]
mov byte [ebp - 4], 3
test eax, eax
je 0x40451b
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x6e4]
test eax, eax
jle 0x404b66
cmp eax, dword [ebp - 0x6ec]
jae 0x404b66
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.00402d50
mov dword [ebp - 0x6e8], eax
cmp byte [eax + 0xb], 0
je 0x40458f
push 0x298b4d93
push 0xcf65775b
push 0
push 0xb
push eax
call fcn.00401450
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.004029b0
add esp, 0x10
test eax, eax
jle 0x404afc
cmp eax, 0x80
jae 0x404afc
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 0x404688
cmp dword [ebp - 0x734], 0
je 0x404688
push 0x100
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], 0x100
call fcn.00402ed0
mov dword [ebp - 0x6e8], eax
cmp byte [eax + 0x6c], 0
je 0x404652
push 0xdf03b5cb
push 0x4d61d7db
push 0
push 0x6c
push eax
call fcn.00401450
mov eax, dword [ebp - 0x6e8]
add esp, 0x14
mov byte [eax + 0x6c], 0
push dword [ebp - 0x734]
push dword [ebp - 0x704]
push eax
push 0x100
push dword [ebp - 0x70c]
call fcn.004029b0
add esp, 0x14
test eax, eax
jle 0x4046de
cmp eax, 0x100
jae 0x4046de
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 0x40475b
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4046b8
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 0x404761
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 0x404708
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x724]
test eax, eax
je 0x404718
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x730]
test eax, eax
je 0x404728
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x704]
test eax, eax
je 0x404738
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x744]
test eax, eax
je 0x404748
push eax
call edi
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x404be1
push eax
call edi
jmp 0x404bde
mov esi, dword [ebp - 0x6f0]
cmp dword [ebp - 0x738], 0
je 0x4047cc
cmp dword [ebp - 0x734], 0
je 0x4047cc
test ecx, ecx
je 0x404800
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 0x404790
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 0x404800
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 0x404800
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 0x4047e1
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 0x40494f
push eax
push dword [ebp - 0x6f0]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x40494f
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 0x40494f
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebp - 0x6ec]
test eax, eax
je 0x404949
test esi, esi
jne 0x4048b7
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.00409b10
add esp, 0x10
jmp 0x404918
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.00409b10
push dword [ebp - 0x6ec]
lea eax, [ebp - 0x410]
push eax
mov eax, dword [ebp - 0x6e4]
add eax, esi
push eax
call fcn.00409b10
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 0x404870
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 0x404a7f
mov ecx, dword [ebp - 0x6e4]
push ecx
push eax
lea eax, [ebp - 0x718]
push eax
call fcn.00404fc0
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 0x4049f2
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 0x4049d5
dec esi
or esi, 0xffffff00
inc esi
mov ecx, dword [ebp - 0x71c]
mov byte [edx], cl
inc edx
cmp edx, dword [ebp - 0x6e8]
jb 0x4049b0
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 0x404a2c
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x724]
test eax, eax
je 0x404a3c
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x730]
test eax, eax
je 0x404a4c
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x704]
test eax, eax
je 0x404a5c
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x744]
test eax, eax
je 0x404a6c
push eax
call edi
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x404be1
push eax
call edi
jmp 0x404bde
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 0x404aa9
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x724]
test eax, eax
je 0x404ab9
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x730]
test eax, eax
je 0x404ac9
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x704]
test eax, eax
je 0x404ad9
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x744]
test eax, eax
je 0x404ae9
push eax
call edi
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x404be1
push eax
call edi
jmp 0x404bde
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 0x404b26
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x730]
test eax, eax
je 0x404b36
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x704]
test eax, eax
je 0x404b46
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x744]
test eax, eax
je 0x404b56
push eax
call edi
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x404be1
push eax
call edi
jmp 0x404bde
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 0x404b90
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x704]
test eax, eax
je 0x404ba0
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x744]
test eax, eax
je 0x404bb0
push eax
call edi
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x404be1
push eax
call edi
jmp 0x404bde
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 0x404be1
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.00408be8
mov esp, ebp
pop ebp
ret