Function at 0x425bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484948
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4aa0cc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x48], ebx
mov edi, dword [eax + ecx*4]
test ecx, ecx
je 0x425c4d
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x200002
push dword [edi]
call fcn.004307c0
add esp, 0xc
cmp dword [ebp - 0x1c], 0xce
je 0x425d1f
push str.server_does_not_support_Range
push 0
push str.HttpClient.cpp
call fcn.0040e7f0
add esp, 0xc
mov dword [ebx + 8], 0xffffffff
jmp 0x42603a
cmp dword [esi + 0x18], 1
jbe 0x425d1f
cmp dword [esi + 0x98], 0xfffffffe
jne 0x425d1f
cmp dword [esi + 0x9c], 0xffffffff
jne 0x425d1f
movsd xmm0, qword [0x49c830]
lea eax, [ebp - 0x20]
push eax
push 0x30000f
push dword [edi]
movsd qword [ebp - 0x20], xmm0
call fcn.004307c0
movsd xmm0, qword [ebp - 0x20]
add esp, 0xc
call fcn.0047e96f
mov dword [esi + 0x98], eax
mov ecx, eax
and eax, edx
mov dword [esi + 0x9c], edx
cmp eax, 0xffffffff
je 0x425d1f
imul eax, dword [esi + 0x18], 0x1f4
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], edx
jg 0x425d1f
jl 0x425cc9
cmp eax, ecx
jae 0x425d1f
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x38], 0x426060
mov dword [ebp - 0x34], 0
call fcn.00402100
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x58], 0
push ecx
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.00427e70
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0x48]
push eax
call fcn.00421f70
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 0xffffffff
call fcn.00422c70
lea eax, [esi + 0x24]
mov ecx, eax
mov dword [ebp - 0x44], eax
call fcn.00401e70
test eax, eax
je 0x425e75
cmp byte [esi + 0xdc], 0
jne 0x425dd0
lea ecx, [esi + 0x24]
mov byte [esi + 0xdc], 1
call fcn.00403480
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00427640
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 2
call fcn.00401e70
test eax, eax
je 0x425d8b
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x40]
dec eax
push eax
call fcn.00403770
lea ecx, [ebp - 0x40]
call fcn.00403480
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea ecx, [esi + 0x24]
call fcn.00403480
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esi + 0x3c]
mov dword [ebp - 0x4c], eax
cmp ecx, 0xffffffff
je 0x425dbe
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x40]
mov dword [esi + 0x3c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004033c0
mov eax, dword [edi + 8]
mov cl, 0x20
mov edx, dword [edi + 0xc]
call fcn.00481fe0
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [edi + 8]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
cmp dword [edi + 8], eax
jne 0x425e4c
test ecx, ecx
jne 0x425e4c
push ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
push eax
push dword [ebx + 4]
push dword [ebx]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x425e23
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebx + 4]
je 0x425efd
mov ecx, dword [ebp - 0x44]
call fcn.00403480
push eax
push str.write_to_file_error:_s
push 0
push str.HttpClient.cpp
call fcn.0040e7f0
add esp, 0x10
mov dword [ebx + 8], 0xffffffff
jmp 0x42603a
mov ecx, dword [ebp - 0x44]
call fcn.00403480
push eax
push str.set_file_pointer_error:_s
push 0
push str.HttpClient.cpp
call fcn.0040e7f0
add esp, 0x10
mov dword [ebx + 8], 0xffffffff
jmp 0x42603a
mov eax, dword [ebx + 4]
xor ecx, ecx
add eax, dword [edi + 8]
adc ecx, dword [edi + 0xc]
add eax, 1
adc ecx, 0
js 0x425eb1
jg 0x425e91
cmp eax, 0x80000000
jbe 0x425eb1
push str.file_too_big
push 0
push str.HttpClient.cpp
call fcn.0040e7f0
add esp, 0xc
mov dword [ebx + 8], 0xffffffff
jmp 0x42603a
mov ebx, dword [esi + 0x70]
lea edx, [esi + 0x6c]
sub ebx, dword [edx]
mov dword [ebp - 0x4c], ebx
xor ebx, ebx
cmp ebx, ecx
mov ebx, dword [ebp - 0x24]
jg 0x425eea
jl 0x425ecc
cmp dword [ebp - 0x4c], eax
ja 0x425eea
add eax, 0x400
mov dword [ebp - 4], 3
push eax
mov ecx, edx
call fcn.00426b60
mov dword [ebp - 4], 0xffffffff
lea edx, [esi + 0x6c]
push dword [ebx + 4]
mov eax, dword [edi + 8]
push dword [ebx]
add eax, dword [edx]
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
and eax, 0xfffffffc
cmp eax, 4
mov eax, dword [ebx + 4]
jne 0x425f50
add dword [esi + 0x90], eax
adc dword [esi + 0x94], 0
jmp 0x425fa4
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 0x18]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x1c]
adc eax, 0
cmp eax, edx
jg 0x425f85
jl 0x425f73
cmp dword [ebp - 0x48], ecx
ja 0x425f85
mov eax, dword [ebp - 0x44]
add dword [esi + 0x90], eax
adc dword [esi + 0x94], 0
jmp 0x425fa4
mov eax, dword [edi + 0x1c]
cmp eax, edx
jg 0x425fa4
jl 0x425f93
cmp dword [edi + 0x18], ecx
jae 0x425fa4
sub ecx, dword [edi + 0x18]
sbb edx, eax
add dword [esi + 0x90], ecx
adc dword [esi + 0x94], edx
mov eax, dword [ebx + 4]
add dword [edi + 8], eax
adc dword [edi + 0xc], 0
mov eax, dword [ebx + 4]
add dword [edi + 0x18], eax
adc dword [edi + 0x1c], 0
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
cmp eax, 1
jbe 0x42603a
mov eax, dword [esi + 0x94]
cmp eax, dword [esi + 0x9c]
jl 0x42603a
jg 0x425fe4
mov eax, dword [esi + 0x90]
cmp eax, dword [esi + 0x98]
jb 0x42603a
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x60], 0x425a40
mov dword [ebp - 0x5c], 0
call fcn.00402100
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x30], 0
push ecx
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 5
push eax
lea ecx, [ebp - 0x40]
call fcn.00427ef0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 6
mov ecx, dword [esi + 0x48]
push eax
call fcn.00421f70
lea ecx, [ebp - 0x40]
call fcn.00422c70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047dbfe
mov esp, ebp
pop ebp
ret 8