Function at 0x10006666
Capabilities:
Delete file
Get file size
Move file
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1003325f
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push esi
push edi
mov eax, dword [0x100421cc]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, ecx
and dword [esp + 0x28], 0
lea eax, [esp + 0x28]
push eax
mov ebx, edi
call fcn.10006478
xor ebx, ebx
cmp eax, ebx
jne 0x10006714
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ebx
lea eax, [edi + 0x80]
mov dword [esp + 0xa0], ebx
cmp dword [eax], ebx
jbe 0x100066da
push 4
push eax
push 2
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [esp + 0x34]
push eax
lea esi, [edi + 0x30]
push esi
call fcn.10007e86
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x1000672a
push eax
lea eax, [edi + 4]
call fcn.100083fa
mov esi, dword [esp + 0x18]
push ebx
push dword [esp + 0x2c]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x28]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x28]
push eax
lea eax, [esp + 0x34]
push esi
lea ecx, [edi + 0x2c]
push eax
call fcn.10005dd3
add esp, 0xc
mov byte [esp + 0xa0], 1
mov eax, dword [esp + 0x30]
cmp dword [eax - 0xc], ebx
jne 0x10006774
mov eax, 0xe0000005
mov dword [edi + 0x20], eax
push eax
lea eax, [edi + 4]
call fcn.100083fa
mov eax, dword [esp + 0x30]
mov edi, dword [edi + 0x20]
add eax, 0xfffffff0
call fcn.100024ba
mov esi, edi
jmp 0x100066fd
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x1c], eax
call fcn.10002462
add eax, 0x10
mov dword [esp + 0x14], eax
mov esi, str..part
push esi
mov byte [esp + 0xa4], 2
call fcn.10020d18
pop ecx
push eax
push esi
lea eax, [esp + 0x1c]
call fcn.10001efd
lea esi, [edi + 4]
push 1
mov eax, esi
mov dword [esp + 0x24], esi
call fcn.100083e2
mov dword [esp + 0x24], ebx
cmp byte [edi + 0x4c], bl
je 0x100067d0
lea eax, [esp + 0x14]
call fcn.10001656
mov dword [esp + 0x24], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x30]
call fcn.10006f8a
mov dword [esp + 0x18], eax
mov eax, esi
call fcn.1000840e
test al, al
je 0x10006811
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100024ba
mov eax, dword [esp + 0x1c]
call fcn.100024ba
mov esi, 0xe0000008
jmp 0x100066fd
cmp dword [esp + 0x18], ebx
je 0x10006846
cmp dword [esp + 0x18], 0xe0000013
je 0x1000682c
push dword [esp + 0x18]
mov eax, esi
call fcn.100083fa
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100024ba
mov eax, dword [esp + 0x1c]
call fcn.100024ba
jmp 0x100066f9
mov eax, dword [edi + 0x18]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edi
mov eax, dword [edi + 0x14]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edi
mov byte [esp + 0xa0], 4
mov ecx, dword [esi]
cmp ecx, ebx
je 0x10006877
push dword [esp + 0x30]
mov eax, dword [ecx]
push dword [esp + 0x30]
call dword [eax + 8]
mov eax, esi
call fcn.1000840e
test al, al
je 0x100068bc
lea edi, [esp + 0x4c]
call fcn.100083a8
push ebx
push dword [esp + 0x48]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x44]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100024ba
mov eax, dword [esp + 0x1c]
call fcn.100024ba
xor esi, esi
jmp 0x100066fd
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jbe 0x100068d9
cmp eax, dword [esp + 0x24]
jne 0x100068d9
mov ecx, dword [esi]
cmp ecx, ebx
je 0x10006882
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
jmp 0x10006882
lea eax, [esp + 0x14]
push eax
call fcn.10002de2
pop ecx
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x10006917
push eax
mov eax, esi
call fcn.100083fa
lea edi, [esp + 0x4c]
call fcn.100083a8
push ebx
push dword [esp + 0x48]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x44]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1000682c
xor eax, eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x64], 0xc
sbb ecx, ecx
neg ecx
inc ecx
inc ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov byte [esp + 0xa0], 5
cmp byte [edi + 0x84], bl
je 0x100069a8
cmp ecx, 2
jne 0x100069a8
push str.S_1_1_0
lea eax, [esp + 0x74]
call fcn.1001bcb8
push str.S_1_5_18
lea eax, [esp + 0x74]
call fcn.1001bcb8
lea esi, [esp + 0x70]
call fcn.1001bdda
mov dword [esp + 0x68], eax
push ebx
push 0x80
push dword [esp + 0x44]
neg eax
sbb eax, eax
lea ecx, [esp + 0x70]
and eax, ecx
push eax
push ebx
push 0xc0000000
lea esi, [esp + 0x2c]
call fcn.10001bc2
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ebx
mov byte [esp + 0xa0], 6
cmp eax, 0xffffffff
jne 0x10006b30
mov eax, dword [esp + 0x20]
call fcn.1000840e
test al, al
je 0x10006a80
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x70]
call fcn.1001bd5f
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x90], ebx
je 0x10006a26
push dword [esp + 0x90]
call esi
cmp dword [esp + 0x8c], ebx
je 0x10006a38
push dword [esp + 0x8c]
call esi
lea esi, [esp + 0x7c]
call fcn.1001c10f
cmp dword [esp + 0x70], ebx
je 0x10006a55
push dword [esp + 0x70]
call fcn.1002147d
pop ecx
mov dword [esp + 0x70], ebx
lea edi, [esp + 0x4c]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.100083a8
push ebx
push dword [esp + 0x48]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x44]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x100067f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x3c], eax
push eax
mov eax, dword [esp + 0x24]
call fcn.100083fa
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x70]
call fcn.1001bd5f
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x90], ebx
je 0x10006abd
push dword [esp + 0x90]
call esi
cmp dword [esp + 0x8c], ebx
je 0x10006acf
push dword [esp + 0x8c]
call esi
lea esi, [esp + 0x7c]
call fcn.1001c10f
cmp dword [esp + 0x70], ebx
je 0x10006aec
push dword [esp + 0x70]
call fcn.1002147d
pop ecx
mov dword [esp + 0x70], ebx
lea edi, [esp + 0x4c]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.100083a8
push ebx
push dword [esp + 0x48]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x44]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100024ba
mov eax, dword [esp + 0x1c]
call fcn.100024ba
mov esi, dword [esp + 0x3c]
jmp 0x100066fd
cmp dword [esp + 0x24], ebx
jbe 0x10006b54
push 2
push ebx
push ebx
push dword [esp + 0x60]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x10006b64
push dword [esp + 0x24]
jmp 0x10006b5f
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x10006b64
push ebx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov dword [esp + 0x24], ebx
push 0xc800
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0xa8], 7
call fcn.10001bea
mov esi, dword [esp + 0x54]
lea eax, [esp + 0x38]
push eax
push dword [edi + 0x14]
mov eax, edi
call fcn.10007127
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], ebx
cmp eax, ebx
jne 0x10006be1
cmp dword [esp + 0x38], ebx
jbe 0x10006cba
mov eax, 0xc800
cmp dword [esp + 0x38], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
ja 0x10006bbf
lea eax, [esp + 0x38]
mov eax, dword [eax]
lea ecx, [esp + 0x3c]
push ecx
push eax
push dword [esp + 0x2c]
mov eax, edi
push dword [edi + 0x14]
call fcn.10007088
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x10006cb0
cmp eax, 0x2ee2
je 0x10006bfd
cmp eax, 0x2efe
je 0x10006bfd
cmp eax, 0x2eff
je 0x10006bfd
cmp eax, 0x2f83
jne 0x10006c2d
cmp dword [esp + 0x34], 3
je 0x10006c0b
cmp dword [esp + 0x34], 4
jne 0x10006c2d
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x50]
push eax
push esi
push dword [esp + 0x34]
mov eax, edi
call fcn.1000700c
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x10006b83
cmp eax, 0xe0000008
je 0x10006c3e
push eax
mov eax, dword [esp + 0x24]
call fcn.100083fa
push dword [esp + 0x24]
call fcn.10020d8f
pop ecx
cmp esi, ebx
je 0x10006c53
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x70]
call fcn.1001bd5f
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x90], ebx
je 0x10006c74
push dword [esp + 0x90]
call esi
cmp dword [esp + 0x8c], ebx
je 0x10006c86
push dword [esp + 0x8c]
call esi
lea esi, [esp + 0x7c]
call fcn.1001c10f
cmp dword [esp + 0x70], ebx
je 0x10006ca3
push dword [esp + 0x70]
call fcn.1002147d
pop ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
jmp 0x100068f4
cmp dword [esp + 0x3c], ebx
jne 0x10006da4
cmp dword [esp + 0x2c], ebx
jbe 0x10006e0c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esp + 0x2c]
jae 0x10006e0c
cmp dword [esp + 0x34], 3
je 0x10006c0b
cmp dword [esp + 0x34], 4
je 0x10006c0b
mov eax, dword [esp + 0x20]
push 0xe000000f
call fcn.100083fa
push dword [esp + 0x24]
call fcn.10020d8f
pop ecx
cmp esi, ebx
je 0x10006d0f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x70]
call fcn.1001bd5f
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x90], ebx
je 0x10006d30
push dword [esp + 0x90]
call esi
cmp dword [esp + 0x8c], ebx
je 0x10006d42
push dword [esp + 0x8c]
call esi
lea esi, [esp + 0x7c]
call fcn.1001c10f
cmp dword [esp + 0x70], ebx
je 0x10006d5f
push dword [esp + 0x70]
call fcn.1002147d
pop ecx
mov dword [esp + 0x70], ebx
lea edi, [esp + 0x4c]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.100083a8
push ebx
push dword [esp + 0x48]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x44]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100024ba
mov eax, dword [esp + 0x1c]
call fcn.100024ba
mov esi, 0xe000000f
jmp 0x100066fd
push ebx
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x44]
push dword [esp + 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10006ec7
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x10006dd4
push dword [esp + 0x40]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov esi, dword [esp + 0x20]
lea eax, [edi + 0x44]
push eax
call fcn.10008425
mov eax, esi
call fcn.1000840e
test al, al
je 0x10006b7f
push dword [esp + 0x24]
call fcn.10020d8f
pop ecx
cmp dword [esp + 0x54], ebx
je 0x10006e6a
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10006e6a
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x54], ebx
je 0x10006e22
push dword [esp + 0x54]
call esi
mov dword [esp + 0x54], ebx
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x30]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x10006e4b
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esp + 0x24]
call fcn.10020d8f
pop ecx
cmp dword [esp + 0x54], ebx
je 0x10006e6a
push dword [esp + 0x54]
call esi
lea esi, [esp + 0x70]
call fcn.1001bd5f
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x90], ebx
je 0x10006e8b
push dword [esp + 0x90]
call esi
cmp dword [esp + 0x8c], ebx
je 0x10006e9d
push dword [esp + 0x8c]
call esi
lea esi, [esp + 0x7c]
call fcn.1001c10f
cmp dword [esp + 0x70], ebx
je 0x10006eba
push dword [esp + 0x70]
call fcn.1002147d
pop ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
jmp 0x10006882
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x20], eax
push eax
mov eax, dword [esp + 0x24]
call fcn.100083fa
mov eax, dword [edi + 0x20]
push dword [esp + 0x24]
mov dword [esp + 0x38], eax
call fcn.10020d8f
pop ecx
cmp esi, ebx
je 0x10006ef6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x70]
call fcn.1001bd5f
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x90], ebx
je 0x10006f17
push dword [esp + 0x90]
call esi
cmp dword [esp + 0x8c], ebx
je 0x10006f29
push dword [esp + 0x8c]
call esi
lea esi, [esp + 0x7c]
call fcn.1001c10f
cmp dword [esp + 0x70], ebx
je 0x10006f46
push dword [esp + 0x70]
call fcn.1002147d
pop ecx
mov dword [esp + 0x70], ebx
lea edi, [esp + 0x4c]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.100083a8
push ebx
push dword [esp + 0x48]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x44]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100024ba
mov eax, dword [esp + 0x1c]
call fcn.100024ba
mov esi, dword [esp + 0x34]
jmp 0x100066fd