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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c193
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x61094c]
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 0x525bf5
cmp edx, 1
jne 0x5265fc
cmp edx, 2
mov dword [ebp - 0xb0], 0
mov ecx, 0x800000
cmovne ecx, dword [ebp - 0xb0]
cmp dword [eax + 0x14], 8
jb 0x525c16
mov eax, dword [eax]
push ecx
push 0
push 0
push 0
push eax
push 0x5bb0b0
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 0x526656
push edi
push esi
call fcn.00527af0
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 0x525cce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x525c8d
mov eax, dword [ebp - 0xb0]
inc eax
mov dword [ebp - 0xb0], eax
cmp eax, 0xa
jle 0x525c57
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.00527a60
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.00553cca
mov esp, ebp
pop ebp
ret 0x10
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x525ce2
push str.WinHttp:_Failed_to_receive_response
jmp 0x525c92
push 0x13
lea eax, [ebp - 0x88]
push esi
push eax
call fcn.00525520
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.004246c0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xd8]
mov ecx, edi
push eax
call dword [0x5a0478]
mov ecx, dword [ebp - 0xb4]
call edi
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 4
call fcn.00424580
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.00525520
add esp, 0xc
mov edi, eax
push str.Content_Type
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 6
call fcn.004246c0
push edi
mov edi, dword [ebp - 0xb0]
lea eax, [ebp - 0xd8]
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call dword [0x5a0478]
mov ecx, dword [ebp - 0xb4]
call edi
lea ecx, [ebp - 0xd8]
call fcn.00424580
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00424580
push 5
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00525520
add esp, 0xc
cmp dword [ebp - 0x60], 0
mov byte [ebp - 4], 8
jne 0x52610d
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.004246c0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0xd8]
mov ecx, edi
push eax
call dword [0x5a0478]
mov ecx, dword [ebp - 0xb4]
call edi
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 8
call fcn.00424580
push 0x34
lea eax, [ebp - 0xa8]
push esi
push eax
call fcn.00525520
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.004246c0
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0xd8]
mov ecx, edi
push eax
call dword [0x5a0478]
mov ecx, dword [ebp - 0xb4]
call edi
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xa
call fcn.00424580
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.00525520
add esp, 0xc
mov edi, eax
push str.ETag
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xc
call fcn.004246c0
push edi
mov edi, dword [ebp - 0xb0]
lea eax, [ebp - 0xd8]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xd
call dword [0x5a0478]
mov ecx, dword [ebp - 0xb4]
call edi
lea ecx, [ebp - 0xd8]
call fcn.00424580
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.00424580
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.00525520
add esp, 0xc
mov edi, eax
push str.Last_Modified
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xe
call fcn.004246c0
push edi
mov edi, dword [ebp - 0xb0]
lea eax, [ebp - 0xd8]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xf
call dword [0x5a0478]
mov ecx, dword [ebp - 0xb4]
call edi
lea ecx, [ebp - 0xd8]
call fcn.00424580
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.00424580
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.00525520
add esp, 0xc
mov edi, eax
push str.Expires
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x10
call fcn.004246c0
push edi
mov edi, dword [ebp - 0xb0]
lea eax, [ebp - 0xd8]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x11
call dword [0x5a0478]
mov ecx, dword [ebp - 0xb4]
call edi
lea ecx, [ebp - 0xd8]
call fcn.00424580
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.00424580
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.00525520
add esp, 0xc
mov edi, eax
push str.Cache_Control
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x12
call fcn.004246c0
push edi
mov edi, dword [ebp - 0xb0]
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0x13
mov ecx, edi
push eax
call dword [0x5a0478]
mov ecx, dword [ebp - 0xb4]
call edi
lea ecx, [ebp - 0xd8]
call fcn.00424580
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.00424580
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.00525520
add esp, 0xc
mov edi, eax
push str.Accept_Ranges
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x14
call fcn.004246c0
push edi
mov edi, dword [ebp - 0xb0]
lea eax, [ebp - 0xd8]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x15
call dword [0x5a0478]
mov ecx, dword [ebp - 0xb4]
call edi
lea ecx, [ebp - 0xd8]
call fcn.00424580
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.00424580
lea eax, [ebp - 0x88]
mov byte [ebp - 0xbc], 0
push 0x5ac618
push eax
call fcn.00437950
add esp, 8
test al, al
je 0x526167
mov edi, dword [ebp - 0xb8]
lea ecx, [ebp - 0xa8]
mov dword [edi], 0
mov dword [edi + 4], 0x60c5e8
call fcn.00424580
lea ecx, [ebp - 0x70]
call fcn.00424580
lea ecx, [ebp - 0x88]
call fcn.00424580
jmp 0x525ca8
call fcn.0055ec15
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.0056667f
add esp, 0xc
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xdc], edx
cmp edi, dword [ebp - 0xb0]
je 0x526690
mov eax, dword [ebp - 0xbc]
cmp dword [eax], 0x22
je 0x52669a
jmp 0x525dde
lea eax, [ebp - 0x88]
push 0x5ac620
push eax
call fcn.00437950
add esp, 8
test al, al
je 0x526268
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 0x5261c9
mov ecx, dword [ebp - 0xc0]
jl 0x5261aa
test ecx, ecx
jae 0x5261c9
neg ecx
adc eax, 0
neg eax
push eax
push ecx
lea eax, [ebp - 0x12]
push eax
call fcn.004f0f10
lea ecx, [eax - 2]
mov eax, 0x2d
mov word [ecx], ax
jmp 0x5261db
push eax
push dword [ebp - 0xc0]
lea eax, [ebp - 0x12]
push eax
call fcn.004f0f10
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 0x52620e
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x58]
call fcn.00425790
push 0x5ab68c
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x16
call fcn.004246c0
mov ecx, dword [ebp - 0xb0]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0x17
push eax
call dword [0x5a0478]
mov ecx, edi
call dword [ebp - 0xb0]
lea ecx, [ebp - 0xd8]
call fcn.00424580
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.00424580
mov byte [ebp - 0xbc], 1
jmp 0x5263b6
lea eax, [ebp - 0x88]
push 0x5ac628
push eax
call fcn.00437950
add esp, 8
test al, al
je 0x52659f
push 0x35
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00525520
add esp, 0xc
cmp dword [ebp - 0x48], 0
mov byte [ebp - 4], 0x18
jne 0x5262e2
push 0x1e
mov ecx, dword [ebp - 0xb8]
call fcn.005250c0
lea ecx, [ebp - 0x58]
call fcn.00424580
lea ecx, [ebp - 0xa8]
call fcn.00424580
lea ecx, [ebp - 0x70]
call fcn.00424580
lea ecx, [ebp - 0x88]
call fcn.00424580
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0xb8]
jmp 0x525cb1
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00527220
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 [0x5a0478]
mov ecx, dword [ebp - 0xb4]
call edi
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - 0xb0], ecx
cmp eax, ecx
jne 0x526598
mov edi, dword [ebp - 0xd4]
cmp edx, edi
jne 0x526598
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 0x526591
mov eax, dword [ebp - 0xcc]
cmp eax, edx
jne 0x526591
sub ecx, dword [ebp - 0xb0]
sbb eax, edi
add ecx, 1
adc eax, 0
cmp dword [ebp - 0xc0], ecx
jne 0x52658a
cmp dword [ebp - 0xdc], eax
jne 0x52658a
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.00424580
mov edi, dword [ebp - 0xb4]
mov eax, dword [edi]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x5a0478]
mov ecx, dword [ebp - 0xb4]
call edi
push 0x10000
call fcn.00554193
mov edi, eax
mov dword [ebp - 0xe0], eax
add esp, 4
test edi, edi
je 0x5263f6
push 0x10000
push 0
push edi
call fcn.00556180
add esp, 0xc
jmp 0x5263fe
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 [0x5a0478]
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 0x5264e1
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 0x5266a4
mov dword [ecx + 4], edi
test edi, edi
jne 0x5264a4
test eax, eax
jne 0x5266a4
mov ecx, edx
call dword [0x5a0478]
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 0x526511
lea eax, [ebp - 0x40]
push eax
push 0x10000
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x526472
push str.WinHttp:_Error_in_WinHttpReadData
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0xb8]
call fcn.00527a60
add esp, 0xc
test edi, edi
je 0x5262b2
push edi
call fcn.00469710
add esp, 4
jmp 0x5262b2
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax]
mov edi, dword [eax + 0x1c]
mov ecx, edi
call dword [0x5a0478]
mov ecx, dword [ebp - 0xb4]
call edi
mov ecx, dword [ebp - 0xdc]
test ecx, ecx
jl 0x52656c
jg 0x526541
cmp dword [ebp - 0xc0], 0
jb 0x52656c
mov eax, dword [ebp - 0xbc]
cmp dword [ebp - 0xc0], eax
jne 0x526557
cmp ecx, dword [ebp - 0xb0]
je 0x52656c
mov ecx, dword [ebp - 0xb8]
push 1
call fcn.005250c0
mov edi, dword [ebp - 0xe0]
jmp 0x5264fb
mov eax, dword [ebp - 0xb8]
mov edi, dword [ebp - 0xe0]
mov dword [eax], 0
mov dword [eax + 4], 0x60c5e8
jmp 0x5264fb
push 0xc
jmp 0x52629f
push 0xb
jmp 0x52629f
push 0xa
jmp 0x52629f
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.005281e0
push eax
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0x19
push str.WinHttp:_Unexpected_status_code__
push eax
call fcn.004b0d50
push 0x29
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x1a
push eax
call fcn.0050c3a0
add esp, 0x20
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x1b
call fcn.004213c0
push 0x608b3c
lea eax, [ebp - 0x90]
push eax
call fcn.00555b8c
push edx
lea eax, [ebp - 0xd8]
push eax
call fcn.004b1220
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
push str.WinHttp:_Invalid_scheme__
push eax
call fcn.004b0d50
push 0x29
push eax
lea eax, [ebp - 0x10c]
mov byte [ebp - 4], 1
push eax
call fcn.0050c3a0
add esp, 0x20
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 2
call fcn.004b12a0
push 0x608cd4
lea eax, [ebp - 0xe8]
push eax
call fcn.00555b8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00521e40
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.0051fd40
push 0x608ae8
lea eax, [ebp - 0xf0]
push eax
call fcn.00555b8c
push str.invalid_stoll_argument
call fcn.0053ec72
push str.stoll_argument_out_of_range
call fcn.0053ecb2
call fcn.00528130
int3