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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1e87
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
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 ebx, ecx
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0xd0]
mov eax, dword [ebp + 8]
dec edx
mov esi, dword [ebp + 0x10]
add edx, esi
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xdc], eax
call fcn.10006c10
mov edi, eax
mov edx, esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.10006c10
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10009a90
push 0x100bafdc
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.10009ae0
push edi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb8]
call fcn.10009b50
add esp, 0xc
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x100084e6
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10009440
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x1000850f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10009440
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x8c]
cmp eax, 8
jb 0x10008541
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.10009440
xor eax, eax
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
mov eax, dword [ebp - 0xbc]
cmp eax, 8
jb 0x1000857c
inc eax
lea ecx, [ebp - 0xd0]
push eax
push dword [ebp - 0xd0]
call fcn.10009440
mov dword [ebp - 0xbc], 0xf
mov dword [ebp - 0xc0], 0
mov byte [ebp - 0xd0], 0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [edx], 0
jne 0x100085bc
xor ecx, ecx
jmp 0x100085ca
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100085c1
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.100017d0
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x88]
call fcn.10006fa0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100085ff
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10001ca0
mov edx, dword [ebp - 0xdc]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [edx], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jne 0x10008632
xor ecx, ecx
jmp 0x10008640
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008637
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.100017d0
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x58]
call fcn.10006fa0
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x10008672
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10001ca0
mov eax, dword [ebx + 0x10]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
test eax, eax
je 0x1000869b
push eax
call esi
mov dword [ebx + 0x10], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x100086ac
push eax
call esi
mov dword [ebx + 0xc], 0
mov eax, dword [ebx + 8]
test eax, eax
je 0x100086bd
push eax
call esi
mov dword [ebx + 8], 0
cmp dword [ebp - 0xa4], 8
lea ecx, [ebp - 0xb8]
lea eax, [ebp - 0x88]
mov byte [ebp - 0xd1], 0
cmovae ecx, dword [ebp - 0xb8]
cmp dword [ebp - 0x74], 8
push ecx
cmovae eax, dword [ebp - 0x88]
mov ecx, ebx
push 0
push 0
push eax
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xdc], 0
call fcn.10008ac0
test al, al
je 0x1000873f
lea eax, [ebp - 0xe0]
mov ecx, ebx
push eax
call fcn.10008390
test al, al
jne 0x100087da
mov dword [ebx + 0x28], 4
xor bl, bl
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x10008756
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.10009440
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x10008785
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.10009440
mov ecx, dword [ebp - 0xa4]
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
cmp ecx, 8
jb 0x100087ba
inc ecx
push ecx
push dword [ebp - 0xb8]
lea ecx, [ebp - 0xb8]
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.1006c2b1
mov esp, ebp
pop ebp
ret 0x10
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], 0x10
push eax
mov ecx, ebx
call fcn.10008300
test al, al
je 0x10008824
push 3
push ecx
push 0x100bafc4
lea ecx, [ebp - 0x70]
call fcn.10008fb0
cmp eax, 0xffffffff
je 0x10008824
mov dword [ebx + 0x28], 5
xor bl, bl
jmp 0x100089e5
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push 0
cmovae eax, dword [ebp - 0x58]
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000885d
mov dword [ebx + 0x28], 7
xor bl, bl
jmp 0x100089e5
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push dword [ebp - 0xe0]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
push edi
call esi
lea eax, [ebp - 0xd8]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x100088b4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor bl, bl
jmp 0x100089e5
push 0x100000
call fcn.1007530d
mov ecx, dword [ebp - 0xd8]
add esp, 4
mov esi, eax
nop dword [eax]
cmp ecx, 0x100000
jbe 0x100088f4
push esi
call fcn.100752f2
push dword [ebp - 0xd8]
call fcn.1007530d
mov ecx, dword [ebp - 0xd8]
add esp, 8
mov esi, eax
lea eax, [ebp - 0xe4]
push eax
push ecx
push esi
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x100089b9
push 0
lea eax, [ebp - 0xe8]
push eax
push dword [ebp - 0xe4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100089b9
mov eax, dword [ebp - 0xe4]
cmp eax, dword [ebp - 0xe8]
jne 0x100089b9
add dword [ebp - 0xdc], eax
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x10008993
mov eax, dword [ebp - 0xdc]
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 - 0xe0]
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 [ebx + 0x20]
call dword [edx]
lea eax, [ebp - 0xd8]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x100089b9
mov ecx, dword [ebp - 0xd8]
test ecx, ecx
jne 0x100088d0
mov bl, 1
jmp 0x100089bf
mov bl, byte [ebp - 0xd1]
push esi
call fcn.100752f2
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x100089e5
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x100089fa
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 0x10008741