Function at 0x1007ab90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e8498
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x102683e0]
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 - 0x1c], ebx
mov dword [ebp - 0x4c], ebx
mov edi, dword [eax + ecx*4]
test ecx, ecx
je 0x1007ac1d
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x200002
push dword [edi]
call fcn.100ae170
add esp, 0xc
cmp dword [ebp - 0x18], 0xce
je 0x1007acd8
push str.server_does_not_support_Range
push 0
push str.HttpClient.cpp
call fcn.10036720
add esp, 0xc
mov dword [ebx + 8], 0xffffffff
jmp 0x1007affb
cmp dword [esi + 0x18], 1
jbe 0x1007acd8
cmp dword [esi + 0x98], 0xfffffffe
jne 0x1007acd8
cmp dword [esi + 0x9c], 0xffffffff
jne 0x1007acd8
movsd xmm0, qword [0x1023a5d8]
lea eax, [ebp - 0x28]
push eax
push 0x30000f
push dword [edi]
movsd qword [ebp - 0x28], xmm0
call fcn.100ae170
movsd xmm0, qword [ebp - 0x28]
add esp, 0xc
call fcn.101a1e7f
mov dword [esi + 0x98], eax
mov ecx, eax
and eax, edx
mov dword [esi + 0x9c], edx
cmp eax, 0xffffffff
je 0x1007acd8
imul eax, dword [esi + 0x18], 0x1f4
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], edx
jg 0x1007acd8
jl 0x1007ac99
cmp eax, ecx
jae 0x1007acd8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x1007b070
push eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], esi
call fcn.1007ca10
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x48]
push eax
call fcn.10075f10
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 0xffffffff
call fcn.10076d10
cmp dword [esi + 0x34], 0
je 0x1007ae4d
cmp byte [esi + 0xdc], 0
jne 0x1007ada2
lea eax, [esi + 0x24]
mov byte [esi + 0xdc], 1
cmp dword [eax + 0x14], 8
jb 0x1007ad01
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.1007cb50
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1007ad51
lea ecx, [eax - 1]
cmp eax, ecx
jae 0x1007ad2a
push str.invalid_string_position
call fcn.101874f4
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
mov dword [ebp - 0x38], ecx
cmovae eax, dword [ebp - 0x48]
xor edx, edx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
cmovae eax, dword [ebp - 0x48]
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [esi + 0x38], 8
lea eax, [esi + 0x24]
jb 0x1007ad5c
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esi + 0x3c]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x1007ad87
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], 8
mov dword [esi + 0x3c], eax
jb 0x1007ada2
push dword [ebp - 0x48]
call fcn.101a02f0
add esp, 4
mov eax, dword [edi + 8]
mov cl, 0x20
mov edx, dword [edi + 0xc]
call fcn.101e2660
push 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
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 0x1007ae21
test ecx, ecx
jne 0x1007ae21
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 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 0x1007adf5
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebx + 4]
je 0x1007aed5
add esi, 0x24
cmp dword [esi + 0x14], 8
jb 0x1007ae00
mov esi, dword [esi]
push esi
push str.write_to_file_error:_s
push 0
push str.HttpClient.cpp
call fcn.10036720
add esp, 0x10
mov dword [ebx + 8], 0xffffffff
jmp 0x1007affb
add esi, 0x24
cmp dword [esi + 0x14], 8
jb 0x1007ae2c
mov esi, dword [esi]
push esi
push str.set_file_pointer_error:_s
push 0
push str.HttpClient.cpp
call fcn.10036720
add esp, 0x10
mov dword [ebx + 8], 0xffffffff
jmp 0x1007affb
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 0x1007ae89
jg 0x1007ae69
cmp eax, 0x80000000
jbe 0x1007ae89
push str.file_too_big
push 0
push str.HttpClient.cpp
call fcn.10036720
add esp, 0xc
mov dword [ebx + 8], 0xffffffff
jmp 0x1007affb
mov ebx, dword [esi + 0x70]
lea edx, [esi + 0x6c]
sub ebx, dword [edx]
mov dword [ebp - 0x24], ebx
xor ebx, ebx
cmp ebx, ecx
mov ebx, dword [ebp - 0x1c]
jg 0x1007aec2
jl 0x1007aea4
cmp dword [ebp - 0x24], eax
ja 0x1007aec2
add eax, 0x400
mov dword [ebp - 4], 2
push eax
mov ecx, edx
call fcn.1007bc80
mov dword [ebp - 4], 0xffffffff
lea edx, [esi + 0x6c]
push dword [ebx + 4]
mov eax, dword [edx]
push dword [ebx]
add eax, dword [edi + 8]
push eax
call fcn.101a1180
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 0x1007af28
add dword [esi + 0x90], eax
adc dword [esi + 0x94], 0
jmp 0x1007af7c
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x18]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [edi + 0x1c]
adc eax, 0
cmp eax, edx
jg 0x1007af5d
jl 0x1007af4b
cmp dword [ebp - 0x4c], ecx
ja 0x1007af5d
mov eax, dword [ebp - 0x18]
add dword [esi + 0x90], eax
adc dword [esi + 0x94], 0
jmp 0x1007af7c
mov eax, dword [edi + 0x1c]
cmp eax, edx
jg 0x1007af7c
jl 0x1007af6b
cmp dword [edi + 0x18], ecx
jae 0x1007af7c
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 0x1007affb
mov eax, dword [esi + 0x94]
cmp eax, dword [esi + 0x9c]
jl 0x1007affb
jg 0x1007afbc
mov eax, dword [esi + 0x90]
cmp eax, dword [esi + 0x98]
jb 0x1007affb
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x1007aa10
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], esi
call fcn.1007cac0
lea eax, [ebp - 0x80]
mov dword [ebp - 4], 4
mov ecx, dword [esi + 0x48]
push eax
call fcn.10075f10
lea ecx, [ebp - 0x80]
call fcn.10076d10
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.101a0193
mov esp, ebp
pop ebp
ret 8