Function at 0x4f8210
Capabilities:
Contain obfuscated stackstrings
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64d1c3
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x6d3438]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xb4], edi
cmp edx, 2
je 0x4f8265
cmp edx, 1
jne 0x4f8c6c
cmp edx, 2
mov dword [ebp - 0xb0], 0
mov ecx, 0x800000
cmovne ecx, dword [ebp - 0xb0]
cmp dword [eax + 0x14], 8
jb 0x4f8286
mov eax, dword [eax]
push ecx
push 0
push 0
push 0
push eax
push 0x6a1c64
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0xac], esi
mov dword [ebp - 4], 3
test esi, esi
je 0x4f8cc6
push edi
push esi
call fcn.004fa160
add esp, 8
mov dword [ebp - 0xb0], 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x4f833e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x4f82fd
mov eax, dword [ebp - 0xb0]
inc eax
mov dword [ebp - 0xb0], eax
cmp eax, 0xa
jle 0x4f82c7
push str.WinHttp:_Failed_to_send_request
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0xb8]
push eax
push edi
call fcn.004fa0d0
add esp, 0xc
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, edi
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.00608185
mov esp, ebp
pop ebp
ret 0x10
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x4f8352
push str.WinHttp:_Failed_to_receive_response
jmp 0x4f8302
push 0x13
lea eax, [ebp - 0x88]
push esi
push eax
call fcn.004f7ba0
add esp, 0xc
mov eax, dword [edi]
lea ecx, [ebp - 0xd8]
push str.Status
mov byte [ebp - 4], 4
mov edi, dword [eax + 4]
call fcn.0042a5a0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xd8]
mov ecx, edi
push eax
call dword [0x659730]
mov ecx, dword [ebp - 0xb4]
call edi
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 4
call fcn.0042f960
mov ecx, dword [ebp - 0xb4]
push 1
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x58]
push eax
call fcn.004f7ba0
add esp, 0xc
mov edi, eax
push str.Content_Type
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 6
call fcn.0042a5a0
push edi
mov edi, dword [ebp - 0xb0]
lea eax, [ebp - 0xd8]
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call dword [0x659730]
mov ecx, dword [ebp - 0xb4]
call edi
lea ecx, [ebp - 0xd8]
call fcn.0042f960
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.0042f960
push 5
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.004f7ba0
add esp, 0xc
cmp dword [ebp - 0x60], 0
mov byte [ebp - 4], 8
jne 0x4f877d
mov dword [ebp - 0xc0], 0xffffffff
mov dword [ebp - 0xdc], 0xffffffff
mov eax, dword [ebp - 0xb4]
lea ecx, [ebp - 0xd8]
push str.Content_Length
mov eax, dword [eax]
mov edi, dword [eax + 4]
call fcn.0042a5a0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0xd8]
mov ecx, edi
push eax
call dword [0x659730]
mov ecx, dword [ebp - 0xb4]
call edi
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 8
call fcn.0042f960
push 0x34
lea eax, [ebp - 0xa8]
push esi
push eax
call fcn.004f7ba0
add esp, 0xc
mov eax, dword [ebp - 0xb4]
lea ecx, [ebp - 0xd8]
push str.Content_MD5
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
mov edi, dword [eax + 4]
call fcn.0042a5a0
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0xd8]
mov ecx, edi
push eax
call dword [0x659730]
mov ecx, dword [ebp - 0xb4]
call edi
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xa
call fcn.0042f960
mov ecx, dword [ebp - 0xb4]
push 0x36
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x58]
push eax
call fcn.004f7ba0
add esp, 0xc
mov edi, eax
push str.ETag
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xc
call fcn.0042a5a0
push edi
mov edi, dword [ebp - 0xb0]
lea eax, [ebp - 0xd8]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xd
call dword [0x659730]
mov ecx, dword [ebp - 0xb4]
call edi
lea ecx, [ebp - 0xd8]
call fcn.0042f960
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.0042f960
mov ecx, dword [ebp - 0xb4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov dword [ebp - 0xb0], eax
push 0xb
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.004f7ba0
add esp, 0xc
mov edi, eax
push str.Last_Modified
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xe
call fcn.0042a5a0
push edi
mov edi, dword [ebp - 0xb0]
lea eax, [ebp - 0xd8]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xf
call dword [0x659730]
mov ecx, dword [ebp - 0xb4]
call edi
lea ecx, [ebp - 0xd8]
call fcn.0042f960
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.0042f960
mov ecx, dword [ebp - 0xb4]
push 0xa
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x58]
push eax
call fcn.004f7ba0
add esp, 0xc
mov edi, eax
push str.Expires
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x10
call fcn.0042a5a0
push edi
mov edi, dword [ebp - 0xb0]
lea eax, [ebp - 0xd8]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x11
call dword [0x659730]
mov ecx, dword [ebp - 0xb4]
call edi
lea ecx, [ebp - 0xd8]
call fcn.0042f960
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.0042f960
mov ecx, dword [ebp - 0xb4]
push 0x31
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x58]
push eax
call fcn.004f7ba0
add esp, 0xc
mov edi, eax
push str.Cache_Control
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x12
call fcn.0042a5a0
push edi
mov edi, dword [ebp - 0xb0]
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0x13
mov ecx, edi
push eax
call dword [0x659730]
mov ecx, dword [ebp - 0xb4]
call edi
lea ecx, [ebp - 0xd8]
call fcn.0042f960
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.0042f960
mov ecx, dword [ebp - 0xb4]
push 0x2a
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x58]
push eax
call fcn.004f7ba0
add esp, 0xc
mov edi, eax
push str.Accept_Ranges
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x14
call fcn.0042a5a0
push edi
mov edi, dword [ebp - 0xb0]
lea eax, [ebp - 0xd8]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x15
call dword [0x659730]
mov ecx, dword [ebp - 0xb4]
call edi
lea ecx, [ebp - 0xd8]
call fcn.0042f960
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.0042f960
lea eax, [ebp - 0x88]
mov byte [ebp - 0xbc], 0
push 0x6691b8
push eax
call fcn.004390c0
add esp, 8
test al, al
je 0x4f87d7
mov edi, dword [ebp - 0xb8]
lea ecx, [ebp - 0xa8]
mov dword [edi], 0
mov dword [edi + 4], 0x6d5954
call fcn.0042f960
lea ecx, [ebp - 0x70]
call fcn.0042f960
lea ecx, [ebp - 0x88]
call fcn.0042f960
jmp 0x4f8318
call fcn.0060e1be
cmp dword [ebp - 0x5c], 8
lea edi, [ebp - 0x70]
mov dword [ebp - 0xbc], eax
cmovae edi, dword [ebp - 0x70]
mov dword [eax], 0
lea eax, [ebp - 0xb0]
push 0xa
push eax
push edi
call fcn.00618f19
add esp, 0xc
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xdc], edx
cmp edi, dword [ebp - 0xb0]
je 0x4f8d00
mov eax, dword [ebp - 0xbc]
cmp dword [eax], 0x22
je 0x4f8d0a
jmp 0x4f844e
lea eax, [ebp - 0x88]
push 0x6691c0
push eax
call fcn.004390c0
add esp, 8
test al, al
je 0x4f88d8
mov edi, dword [ebp - 0xb4]
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xdc]
test eax, eax
jg 0x4f8839
mov ecx, dword [ebp - 0xc0]
jl 0x4f881a
test ecx, ecx
jae 0x4f8839
neg ecx
adc eax, 0
neg eax
push eax
push ecx
lea eax, [ebp - 0x12]
push eax
call fcn.0048d0b0
lea ecx, [eax - 2]
mov eax, 0x2d
mov word [ecx], ax
jmp 0x4f884b
push eax
push dword [ebp - 0xc0]
lea eax, [ebp - 0x12]
push eax
call fcn.0048d0b0
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x58], 0
mov word [ebp - 0x58], ax
add esp, 0xc
lea eax, [ebp - 0x12]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
cmp ecx, eax
je 0x4f887e
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x58]
call fcn.0042e850
push 0x666ba4
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x16
call fcn.0042a5a0
mov ecx, dword [ebp - 0xb0]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0x17
push eax
call dword [0x659730]
mov ecx, edi
call dword [ebp - 0xb0]
lea ecx, [ebp - 0xd8]
call fcn.0042f960
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.0042f960
mov byte [ebp - 0xbc], 1
jmp 0x4f8a26
lea eax, [ebp - 0x88]
push 0x6691c8
push eax
call fcn.004390c0
add esp, 8
test al, al
je 0x4f8c0f
push 0x35
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.004f7ba0
add esp, 0xc
cmp dword [ebp - 0x48], 0
mov byte [ebp - 4], 0x18
jne 0x4f8952
push 0x1e
mov ecx, dword [ebp - 0xb8]
call fcn.004f7700
lea ecx, [ebp - 0x58]
call fcn.0042f960
lea ecx, [ebp - 0xa8]
call fcn.0042f960
lea ecx, [ebp - 0x70]
call fcn.0042f960
lea ecx, [ebp - 0x88]
call fcn.0042f960
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0xb8]
jmp 0x4f8321
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004f9890
add esp, 8
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xf0], xmm0
movups xmmword [ebp - 0xd8], xmm0
movq xmm0, qword [eax + 0x10]
mov eax, dword [ebp - 0xb4]
movq qword [ebp - 0xc8], xmm0
mov eax, dword [eax]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x659730]
mov ecx, dword [ebp - 0xb4]
call edi
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - 0xb0], ecx
cmp eax, ecx
jne 0x4f8c08
mov edi, dword [ebp - 0xd4]
cmp edx, edi
jne 0x4f8c08
mov eax, dword [ebp - 0xc8]
mov edx, dword [ebp - 0xc4]
sub eax, 1
mov ecx, dword [ebp - 0xd0]
sbb edx, 0
cmp ecx, eax
jne 0x4f8c01
mov eax, dword [ebp - 0xcc]
cmp eax, edx
jne 0x4f8c01
sub ecx, dword [ebp - 0xb0]
sbb eax, edi
add ecx, 1
adc eax, 0
cmp dword [ebp - 0xc0], ecx
jne 0x4f8bfa
cmp dword [ebp - 0xdc], eax
jne 0x4f8bfa
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.0042f960
mov edi, dword [ebp - 0xb4]
mov eax, dword [edi]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x659730]
mov ecx, dword [ebp - 0xb4]
call edi
push 0x10000
call fcn.00608193
mov edi, eax
mov dword [ebp - 0xe0], eax
add esp, 4
test edi, edi
je 0x4f8a66
push 0x10000
push 0
push edi
call fcn.0060a8e0
add esp, 0xc
jmp 0x4f8a6e
xor edi, edi
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0x8c], edi
mov eax, dword [ebp - 0xb4]
xorps xmm0, xmm0
push dword [ebp - 0xbc]
mov byte [ebp - 4], 0x1c
mov dword [ebp - 0x40], 0
mov eax, dword [eax]
movlpd qword [ebp - 0xe8], xmm0
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x659730]
mov ecx, dword [ebp - 0xb4]
call edi
mov edi, dword [ebp - 0xe0]
lea eax, [ebp - 0x40]
push eax
push 0x10000
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4f8b51
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xb4]
sub esp, 8
mov ecx, esp
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xf4], edx
mov dword [ecx], eax
test eax, eax
js 0x4f8d14
mov dword [ecx + 4], edi
test edi, edi
jne 0x4f8b14
test eax, eax
jne 0x4f8d14
mov ecx, edx
call dword [0x659730]
mov ecx, dword [ebp - 0xb4]
call dword [ebp - 0xf4]
mov eax, dword [ebp - 0x40]
add dword [ebp - 0xbc], eax
adc dword [ebp - 0xb0], 0
test eax, eax
je 0x4f8b81
lea eax, [ebp - 0x40]
push eax
push 0x10000
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x4f8ae2
push str.WinHttp:_Error_in_WinHttpReadData
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0xb8]
call fcn.004fa0d0
add esp, 0xc
test edi, edi
je 0x4f8922
push edi
call fcn.0060819c
add esp, 4
jmp 0x4f8922
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax]
mov edi, dword [eax + 0x1c]
mov ecx, edi
call dword [0x659730]
mov ecx, dword [ebp - 0xb4]
call edi
mov ecx, dword [ebp - 0xdc]
test ecx, ecx
jl 0x4f8bdc
jg 0x4f8bb1
cmp dword [ebp - 0xc0], 0
jb 0x4f8bdc
mov eax, dword [ebp - 0xbc]
cmp dword [ebp - 0xc0], eax
jne 0x4f8bc7
cmp ecx, dword [ebp - 0xb0]
je 0x4f8bdc
mov ecx, dword [ebp - 0xb8]
push 1
call fcn.004f7700
mov edi, dword [ebp - 0xe0]
jmp 0x4f8b6b
mov eax, dword [ebp - 0xb8]
mov edi, dword [ebp - 0xe0]
mov dword [eax], 0
mov dword [eax + 4], 0x6d5954
jmp 0x4f8b6b
push 0xc
jmp 0x4f890f
push 0xb
jmp 0x4f890f
push 0xa
jmp 0x4f890f
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.004fa780
push eax
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0x19
push str.WinHttp:_Unexpected_status_code__
push eax
call fcn.00440410
push 0x29
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x1a
push eax
call fcn.004b9ee0
add esp, 0x20
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x1b
call fcn.0042ed90
push 0x6cd5f0
lea eax, [ebp - 0x90]
push eax
call fcn.0060a2f4
push edx
lea eax, [ebp - 0xd8]
push eax
call fcn.004408f0
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
push str.WinHttp:_Invalid_scheme__
push eax
call fcn.00440410
push 0x29
push eax
lea eax, [ebp - 0x10c]
mov byte [ebp - 4], 1
push eax
call fcn.004b9ee0
add esp, 0x20
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 2
call fcn.00440970
push 0x6cd5d4
lea eax, [ebp - 0xe8]
push eax
call fcn.0060a2f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004dd150
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.WinHttp:_Failed_to_open_request
push esi
push eax
lea ecx, [ebp - 0xf0]
call fcn.004857d0
push 0x6cd794
lea eax, [ebp - 0xf0]
push eax
call fcn.0060a2f4
push str.invalid_stoll_argument
call fcn.005f34b1
push str.stoll_argument_out_of_range
call fcn.005f34f1
call fcn.00459130
int3