Function at 0x10008300
Capabilities:
Delete file
Get common file path
Get file size
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100deaaf
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x10115034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x31c], edi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x310], ecx
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
cmp ecx, 0xffffffff
je 0x1000843a
push ecx
push 0
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x320], eax
test eax, eax
jne 0x1000839c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcess_fail___d_
push 3
push 0xed
push 0x100e9ed8
push 0x100e9f30
call fcn.100d1600
add esp, 0x18
jmp 0x1000843a
xorps xmm0, xmm0
mov dword [ebp - 0x28c], 0
movdqu xmmword [ebp - 0x288], xmm0
mov dword [ebp - 0x304], 0
mov esi, 0xa
lea eax, [ebp - 0x304]
push eax
push 0x14
lea eax, [ebp - 0x28c]
push eax
mov eax, dword [edi + 4]
push 0x10
call eax
mov edi, dword [ebp - 0x304]
push edi
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov dword [ebp - 0x30c], eax
test eax, eax
je 0x10008413
lea ecx, [ebp - 0x304]
push ecx
push edi
mov edi, dword [ebp - 0x31c]
push eax
push 0x10
mov ecx, dword [edi + 4]
call ecx
test eax, eax
je 0x10008473
mov eax, dword [ebp - 0x30c]
jmp 0x10008419
mov edi, dword [ebp - 0x31c]
push eax
dec esi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
test esi, esi
jg 0x100083c0
push dword [ebp - 0x320]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
xor al, al
mov byte [ebp - 0x305], al
cmp dword [ebp + 0x24], 8
jb 0x10008456
push dword [ebp + 0x10]
call esi
mov al, byte [ebp - 0x305]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100dc8fb
mov esp, ebp
pop ebp
ret 0x20
xorps xmm0, xmm0
movq qword [ebp - 0x228], xmm0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
call fcn.1000b330
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 1
push eax
call fcn.10007d50
mov edi, dword [ebp - 0x30c]
mov esi, dword [ebp - 0x30c]
mov dword [ebp - 0x2f8], 0
mov byte [ebp - 0x305], 0
cmp dword [edi], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x318], 0
jbe 0x100088fd
mov edx, dword [ebp - 0x310]
lea eax, [esi + 0xa]
mov dword [ebp - 0x314], eax
xor ecx, ecx
mov edi, edi
cmp dword [eax - 6], edx
jne 0x10008851
movzx eax, word [eax]
push 2
push 0
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2f4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 0x328]
mov eax, dword [ebp - 0x31c]
push dword [ebp - 0x320]
mov eax, dword [eax + 0xc]
call eax
test eax, eax
jne 0x1000883f
push 0x5e
push eax
mov word [ebp - 0x2f0], ax
lea eax, [ebp - 0x2ee]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x300], 0
lea eax, [ebp - 0x300]
push eax
push 0x60
lea eax, [ebp - 0x2f0]
push eax
mov eax, dword [ebp - 0x31c]
push 2
push dword [ebp - 0x2f4]
mov eax, dword [eax + 8]
call eax
push dword [ebp - 0x300]
call dword [sym.imp.MSVCR120.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x100085ad
push dword [ebp - 0x2f4]
call edi
jmp 0x10008839
push dword [ebp - 0x300]
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x300]
push eax
push dword [ebp - 0x300]
mov eax, dword [ebp - 0x31c]
push esi
push 2
push dword [ebp - 0x2f4]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x100085fc
push dword [ebp - 0x2f4]
call edi
push esi
mov esi, dword [sym.imp.MSVCR120.dll_free]
call esi
add esp, 4
jmp 0x10008839
push 4
push str.File
push dword [esi + 4]
call dword [sym.imp.MSVCR120.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x1000862a
push dword [ebp - 0x2f4]
call edi
push esi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
jmp 0x10008839
push esi
call dword [sym.imp.MSVCR120.dll_free]
xor eax, eax
add esp, 4
mov word [ebp - 0x230], ax
mov dword [ebp - 0x22e], eax
mov word [ebp - 0x22a], ax
mov dword [ebp - 0x2fc], eax
lea eax, [ebp - 0x2fc]
push eax
push 8
lea eax, [ebp - 0x230]
push eax
mov eax, dword [ebp - 0x31c]
push 1
push dword [ebp - 0x2f4]
mov eax, dword [eax + 8]
call eax
push dword [ebp - 0x2fc]
call dword [sym.imp.MSVCR120.dll_malloc]
mov esi, eax
add esp, 4
mov dword [ebp - 0x324], esi
test esi, esi
jne 0x1000869b
push dword [ebp - 0x2f4]
call edi
jmp 0x10008839
push dword [ebp - 0x2fc]
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2fc]
push eax
push dword [ebp - 0x2fc]
mov eax, dword [ebp - 0x31c]
push esi
push 1
push dword [ebp - 0x2f4]
mov eax, dword [eax + 8]
call eax
test eax, eax
jne 0x10008613
cmp word [esi], ax
je 0x10008613
push dword [esi + 4]
lea ecx, [ebp - 0x248]
call fcn.10001ef0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x228]
mov eax, dword [ecx]
mov dword [ebp - 0x21c], eax
cmp eax, ecx
je 0x100087e0
lea esi, [eax + 0x10]
push esi
lea ecx, [ebp - 0x260]
call fcn.10001fd0
lea eax, [esi + 0x18]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x278]
call fcn.10001fd0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x248]
mov esi, dword [ebp - 0x250]
cmovae eax, dword [ebp - 0x260]
push esi
push 0
push eax
call fcn.10005890
cmp eax, 0xffffffff
jne 0x10008793
lea ecx, [ebp - 0x278]
call fcn.10001f50
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 2
call fcn.10001f50
lea ecx, [ebp - 0x21c]
call fcn.1000ab20
mov eax, dword [ebp - 0x21c]
cmp eax, dword [ebp - 0x228]
jne 0x10008706
jmp 0x100087da
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x278]
push eax
push esi
push 0
lea ecx, [ebp - 0x248]
call fcn.10001570
lea ecx, [ebp - 0x248]
cmp ecx, eax
je 0x100087c0
push 0xffffffffffffffff
push 0
push eax
call fcn.10001a60
lea ecx, [ebp - 0x278]
call fcn.10001f50
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 2
call fcn.10001f50
mov esi, dword [ebp - 0x324]
push esi
mov esi, dword [sym.imp.MSVCR120.dll_free]
call esi
add esp, 4
push dword [ebp - 0x2f4]
call edi
sub esp, 0x18
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x324], esp
push eax
call fcn.10001fd0
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0x248]
mov ecx, esp
push eax
call fcn.10001fd0
mov byte [ebp - 4], 2
call fcn.100081c0
test al, al
jne 0x1000886e
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.10001f50
mov esi, dword [ebp - 0x30c]
mov edx, dword [ebp - 0x310]
mov ecx, dword [ebp - 0x318]
mov eax, dword [ebp - 0x314]
inc ecx
add eax, 0x10
mov dword [ebp - 0x318], ecx
mov dword [ebp - 0x314], eax
cmp ecx, dword [esi]
jb 0x10008500
jmp 0x100088fd
push 2
push 0
push 0
lea eax, [ebp - 0x2f8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 0x328]
push dword [ebp - 0x320]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x100088e1
push dword [ebp - 0x30c]
call esi
add esp, 4
push dword [ebp - 0x320]
call edi
push str.DuplicateHandle_fail_
push 3
push 0x185
push 0x100e9f98
push 0x100e9ff0
call fcn.100d1600
add esp, 0x14
lea ecx, [ebp - 0x248]
call fcn.10001f50
xor al, al
mov byte [ebp - 0x305], al
jmp 0x10008ad7
lea ecx, [ebp - 0x248]
mov byte [ebp - 0x305], 1
mov byte [ebp - 4], 1
call fcn.10001f50
mov esi, dword [ebp - 0x30c]
push esi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
push dword [ebp - 0x320]
call edi
cmp byte [ebp - 0x305], 0
jne 0x10008943
push str.Found_file_fail_
push 3
push 0x193
push 0x100ea090
push 0x100ea044
call fcn.100d1600
add esp, 0x14
xor al, al
mov byte [ebp - 0x305], al
jmp 0x10008ad7
push 0
push dword [ebp - 0x2f8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x218], 0
jne 0x10008977
xor ecx, ecx
jmp 0x1000898f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008980
sub ecx, edx
sar ecx, 1
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push ecx
push eax
mov ecx, esi
call fcn.10001df0
push 0xd
push str.historyTmp.db
mov ecx, esi
call fcn.10005dc0
cmp dword [esi + 0x14], 8
jb 0x100089bc
mov eax, dword [esi]
jmp 0x100089be
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x100089cd
mov esi, dword [esi]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10008a1d
push dword [ebp - 0x2f8]
call edi
push str.Create_file_fail_
push 3
push 0x1a9
push 0x100ea128
push 0x100ea180
call fcn.100d1600
add esp, 0x14
xor al, al
mov byte [ebp - 0x305], al
jmp 0x10008ad7
push 0
push 0
push 0
push 2
push 0
push dword [ebp - 0x2f8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x10008a71
push dword [ebp - 0x2f8]
call edi
push 0
call edi
push str.CreateFileMapping_fail_
push 3
push 0x1b2
push 0x100ea1e0
push str.CEdgeHelper::MyCopyFile
call fcn.100d1600
add esp, 0x14
xor al, al
mov byte [ebp - 0x305], al
jmp 0x10008ad7
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x324], eax
test eax, eax
je 0x10008ab6
mov ecx, dword [ebp - 0x328]
test ecx, ecx
je 0x10008ab6
push 0
lea edx, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x21c]
call edi
push esi
call edi
push dword [ebp - 0x2f8]
call edi
mov byte [ebp - 0x305], 1
mov eax, dword [ebp - 0x228]
lea ecx, [ebp - 0x228]
push eax
push dword [eax]
lea eax, [ebp - 0x220]
push eax
call fcn.1000aa60
push dword [ebp - 0x228]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
call esi
mov al, byte [ebp - 0x305]
add esp, 4
jmp 0x10008442