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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c663
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 0x525cd5
cmp edx, 1
jne 0x5266dc
cmp edx, 2
mov dword [ebp - 0xb0], 0
mov ecx, 0x800000
cmovne ecx, dword [ebp - 0xb0]
cmp dword [eax + 0x14], 8
jb 0x525cf6
mov eax, dword [eax]
push ecx
push 0
push 0
push 0
push eax
push 0x5bb110
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 0x526736
push edi
push esi
call fcn.00527bd0
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 0x525dae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x525d6d
mov eax, dword [ebp - 0xb0]
inc eax
mov dword [ebp - 0xb0], eax
cmp eax, 0xa
jle 0x525d37
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.00527b40
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.00553daa
mov esp, ebp
pop ebp
ret 0x10
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x525dc2
push str.WinHttp:_Failed_to_receive_response
jmp 0x525d72
push 0x13
lea eax, [ebp - 0x88]
push esi
push eax
call fcn.00525600
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.00424740
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.00424600
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.00525600
add esp, 0xc
mov edi, eax
push str.Content_Type
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 6
call fcn.00424740
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.00424600
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00424600
push 5
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00525600
add esp, 0xc
cmp dword [ebp - 0x60], 0
mov byte [ebp - 4], 8
jne 0x5261ed
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.00424740
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.00424600
push 0x34
lea eax, [ebp - 0xa8]
push esi
push eax
call fcn.00525600
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.00424740
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.00424600
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.00525600
add esp, 0xc
mov edi, eax
push str.ETag
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xc
call fcn.00424740
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.00424600
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.00424600
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.00525600
add esp, 0xc
mov edi, eax
push str.Last_Modified
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xe
call fcn.00424740
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.00424600
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.00424600
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.00525600
add esp, 0xc
mov edi, eax
push str.Expires
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x10
call fcn.00424740
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.00424600
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.00424600
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.00525600
add esp, 0xc
mov edi, eax
push str.Cache_Control
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x12
call fcn.00424740
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.00424600
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.00424600
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.00525600
add esp, 0xc
mov edi, eax
push str.Accept_Ranges
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x14
call fcn.00424740
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.00424600
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.00424600
lea eax, [ebp - 0x88]
mov byte [ebp - 0xbc], 0
push 0x5ac618
push eax
call fcn.004379e0
add esp, 8
test al, al
je 0x526247
mov edi, dword [ebp - 0xb8]
lea ecx, [ebp - 0xa8]
mov dword [edi], 0
mov dword [edi + 4], 0x60c5e8
call fcn.00424600
lea ecx, [ebp - 0x70]
call fcn.00424600
lea ecx, [ebp - 0x88]
call fcn.00424600
jmp 0x525d88
call fcn.0055ed05
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.0056681f
add esp, 0xc
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xdc], edx
cmp edi, dword [ebp - 0xb0]
je 0x526770
mov eax, dword [ebp - 0xbc]
cmp dword [eax], 0x22
je 0x52677a
jmp 0x525ebe
lea eax, [ebp - 0x88]
push 0x5ac620
push eax
call fcn.004379e0
add esp, 8
test al, al
je 0x526348
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 0x5262a9
mov ecx, dword [ebp - 0xc0]
jl 0x52628a
test ecx, ecx
jae 0x5262a9
neg ecx
adc eax, 0
neg eax
push eax
push ecx
lea eax, [ebp - 0x12]
push eax
call fcn.004f1020
lea ecx, [eax - 2]
mov eax, 0x2d
mov word [ecx], ax
jmp 0x5262bb
push eax
push dword [ebp - 0xc0]
lea eax, [ebp - 0x12]
push eax
call fcn.004f1020
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 0x5262ee
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x58]
call fcn.00425810
push 0x5ab68c
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x16
call fcn.00424740
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.00424600
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.00424600
mov byte [ebp - 0xbc], 1
jmp 0x526496
lea eax, [ebp - 0x88]
push 0x5ac628
push eax
call fcn.004379e0
add esp, 8
test al, al
je 0x52667f
push 0x35
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00525600
add esp, 0xc
cmp dword [ebp - 0x48], 0
mov byte [ebp - 4], 0x18
jne 0x5263c2
push 0x1e
mov ecx, dword [ebp - 0xb8]
call fcn.005251a0
lea ecx, [ebp - 0x58]
call fcn.00424600
lea ecx, [ebp - 0xa8]
call fcn.00424600
lea ecx, [ebp - 0x70]
call fcn.00424600
lea ecx, [ebp - 0x88]
call fcn.00424600
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0xb8]
jmp 0x525d91
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00527300
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 0x526678
mov edi, dword [ebp - 0xd4]
cmp edx, edi
jne 0x526678
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 0x526671
mov eax, dword [ebp - 0xcc]
cmp eax, edx
jne 0x526671
sub ecx, dword [ebp - 0xb0]
sbb eax, edi
add ecx, 1
adc eax, 0
cmp dword [ebp - 0xc0], ecx
jne 0x52666a
cmp dword [ebp - 0xdc], eax
jne 0x52666a
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.00424600
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.00554273
mov edi, eax
mov dword [ebp - 0xe0], eax
add esp, 4
test edi, edi
je 0x5264d6
push 0x10000
push 0
push edi
call fcn.00556260
add esp, 0xc
jmp 0x5264de
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 0x5265c1
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 0x526784
mov dword [ecx + 4], edi
test edi, edi
jne 0x526584
test eax, eax
jne 0x526784
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 0x5265f1
lea eax, [ebp - 0x40]
push eax
push 0x10000
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x526552
push str.WinHttp:_Error_in_WinHttpReadData
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0xb8]
call fcn.00527b40
add esp, 0xc
test edi, edi
je 0x526392
push edi
call fcn.004697f0
add esp, 4
jmp 0x526392
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 0x52664c
jg 0x526621
cmp dword [ebp - 0xc0], 0
jb 0x52664c
mov eax, dword [ebp - 0xbc]
cmp dword [ebp - 0xc0], eax
jne 0x526637
cmp ecx, dword [ebp - 0xb0]
je 0x52664c
mov ecx, dword [ebp - 0xb8]
push 1
call fcn.005251a0
mov edi, dword [ebp - 0xe0]
jmp 0x5265db
mov eax, dword [ebp - 0xb8]
mov edi, dword [ebp - 0xe0]
mov dword [eax], 0
mov dword [eax + 4], 0x60c5e8
jmp 0x5265db
push 0xc
jmp 0x52637f
push 0xb
jmp 0x52637f
push 0xa
jmp 0x52637f
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.005282c0
push eax
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0x19
push str.WinHttp:_Unexpected_status_code__
push eax
call fcn.004b0e40
push 0x29
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x1a
push eax
call fcn.0050c4a0
add esp, 0x20
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x1b
call fcn.00421440
push 0x608f84
lea eax, [ebp - 0x90]
push eax
call fcn.00555c6c
push edx
lea eax, [ebp - 0xd8]
push eax
call fcn.004b1310
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
push str.WinHttp:_Invalid_scheme__
push eax
call fcn.004b0e40
push 0x29
push eax
lea eax, [ebp - 0x10c]
mov byte [ebp - 4], 1
push eax
call fcn.0050c4a0
add esp, 0x20
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 2
call fcn.004b1390
push 0x609110
lea eax, [ebp - 0xe8]
push eax
call fcn.00555c6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00521f20
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.0051fe20
push 0x608f30
lea eax, [ebp - 0xf0]
push eax
call fcn.00555c6c
push str.invalid_stoll_argument
call fcn.0053ed52
push str.stoll_argument_out_of_range
call fcn.0053ed92
call fcn.00528210
int3