Function at 0x10007240
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d7f7b
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x100fb074]
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 ebx, edx
mov esi, ecx
push str._WininetTools::DownLoadFile__n
call fcn.10004450
mov ecx, esi
mov dword [ebp - 0x1c], 0
add esp, 4
mov dword [ebp - 0x18], 7
xor eax, eax
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100072a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10002ec0
push ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x264]
call fcn.10004f50
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x1000730e
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10007304
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100074dc
push edx
push ecx
call fcn.100b4813
add esp, 8
push 3
xor eax, eax
mov byte [ebp - 0x1b0], 0
push 0x100e8b50
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.10002ec0
push ecx
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x264]
call fcn.10005850
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x265], al
cmp edx, 8
jb 0x10007392
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10007382
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100074e1
push edx
push ecx
call fcn.100b4813
mov al, byte [ebp - 0x265]
add esp, 8
test al, al
jne 0x100073a0
push str._WininetTools::DownLoadFile_SendHttpRequest_fail__n
jmp 0x100074a9
mov esi, dword [ebp - 0x130]
cmp esi, dword [ebp - 0x128]
cmovae esi, dword [ebp - 0x128]
lea eax, [esi + 1]
push eax
call fcn.100bd8fa
mov edi, eax
add esp, 4
test edi, edi
je 0x100074a4
cmp dword [ebp - 0x134], 0
je 0x100074a4
lea eax, [esi + 1]
push eax
push 0
push edi
call fcn.100b7060
add esp, 0xc
push esi
push dword [ebp - 0x134]
push edi
call fcn.100b6ae0
add esp, 0xc
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10007407
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000743d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WininetTools::CreateFile_fail__d__n
call fcn.10004450
add esp, 8
jmp 0x100074b1
mov dword [ebp - 0x26c], 0
push 0
lea eax, [ebp - 0x26c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000747b
mov eax, dword [ebp - 0x26c]
sub esi, eax
push eax
push str._WininetTools::DownLoadFile_WriteFile_dwBytesWrite_d_n
add edi, eax
call fcn.10004450
add esp, 8
test esi, esi
jne 0x10007447
jmp 0x10007488
push str._WininetTools::DownLoadFile_WriteFile_faile__n
call fcn.10004450
add esp, 4
test ebx, ebx
je 0x10007493
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._WininetTools::DownLoadFile_end__n
call fcn.10004450
add esp, 4
mov bl, 1
jmp 0x100074b3
push str._WininetTools::DownLoadFile_GetRawResponseContent_fail__n
call fcn.10004450
add esp, 4
xor bl, bl
lea ecx, [ebp - 0x264]
call fcn.10005280
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 - 0x14]
xor ecx, ebp
call fcn.100b47d2
mov esp, ebp
pop ebp
ret
call fcn.100ba02c
call fcn.100ba02c
int3