Function at 0x10007240
Capabilities:
Delete file
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1ca6
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
mov dword [ebp - 4], 0
cmp byte [edx], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jne 0x100072b3
xor ecx, ecx
jmp 0x100072c1
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100072b8
sub ecx, ebx
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.100017d0
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.10006fa0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x100072f6
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10001ca0
cmp byte [esi], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jne 0x10007323
xor ecx, ecx
jmp 0x10007331
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10007328
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.100017d0
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.10006fa0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x10007363
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.10001ca0
mov eax, dword [edi + 0x10]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
test eax, eax
je 0x1000738c
push eax
call esi
mov dword [edi + 0x10], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1000739d
push eax
call esi
mov dword [edi + 0xc], 0
mov eax, dword [edi + 8]
test eax, eax
je 0x100073ae
push eax
call esi
mov dword [edi + 8], 0
xor al, al
mov dword [ebp - 0xa8], 0
cmp dword [ebp - 0x74], 8
mov ecx, edi
push 0
mov byte [ebp - 0xa1], al
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push 0
push 0
push eax
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xb0], 0
call fcn.10008ac0
test al, al
je 0x1000741a
lea eax, [ebp - 0xb4]
mov ecx, edi
push eax
call fcn.10008390
test al, al
jne 0x10007480
mov dword [edi + 0x28], 4
xor bl, bl
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x10007431
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10009440
mov ecx, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x10007460
inc ecx
push ecx
push dword [ebp - 0x88]
lea ecx, [ebp - 0x88]
call fcn.10009440
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006c262
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call fcn.10008300
test al, al
je 0x100074ca
push 3
push ecx
push 0x100bafc4
lea ecx, [ebp - 0x70]
call fcn.10008fb0
cmp eax, 0xffffffff
je 0x100074ca
mov dword [edi + 0x28], 5
xor bl, bl
jmp 0x1000768c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10007503
mov dword [edi + 0x28], 7
xor bl, bl
jmp 0x1000768c
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push dword [ebp - 0xb4]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
push ebx
call esi
lea eax, [ebp - 0xa8]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1000755a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor bl, bl
jmp 0x1000768c
push 0x100000
call fcn.100752dd
mov ecx, dword [ebp - 0xa8]
add esp, 4
mov esi, eax
nop
cmp ecx, 0x100000
jbe 0x10007594
push esi
call fcn.100752c2
push dword [ebp - 0xa8]
call fcn.100752dd
mov ecx, dword [ebp - 0xa8]
add esp, 8
mov esi, eax
lea eax, [ebp - 0xac]
push eax
push ecx
push esi
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x10007660
push 0
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0xac]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10007660
mov eax, dword [ebp - 0xac]
cmp eax, dword [ebp - 0xb8]
jne 0x10007660
add dword [ebp - 0xb0], eax
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x10007637
mov eax, dword [ebp - 0xb0]
sub esp, 0x10
mov edx, dword [ecx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100c3630]
mov eax, dword [ebp - 0xb4]
movsd qword [esp + 8], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100c3630]
movsd qword [esp], xmm0
push 0
push dword [edi + 0x20]
call dword [edx]
lea eax, [ebp - 0xa8]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x10007660
mov ecx, dword [ebp - 0xa8]
test ecx, ecx
jne 0x10007570
mov byte [ebp - 0xa1], 1
push esi
call fcn.100752c2
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 0xa1]
test bl, bl
jne 0x1000768c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x100076a1
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.10009440
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jmp 0x1000741c