Function at 0x100341d2
Capabilities:
Copy file
Delete file
Get file size
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x31c
mov eax, dword [0x1008a418]
xor eax, esp
mov dword [esp + 0x318], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xa4
mov dword [esp + 0x44], eax
xor ebx, ebx
lea eax, [esp + 0x74]
mov edi, edx
mov esi, ecx
mov dword [esp + 0x24], edi
push ebx
push eax
mov dword [esp + 0x30], esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x118]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push 0x208
push ebx
push eax
mov dword [esp + 0x34], ebx
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x4c]
add esp, 0xc
test eax, eax
je 0x10034267
push dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10034870
mov dword [esp + 0x3c], 1
jmp 0x1003426b
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x118]
call fcn.100338ff
mov esi, dword [esi + 0x10]
xor edx, edx
mov ecx, 0x1f4
mov eax, dword [esi + 0x7c]
div ecx
test eax, eax
js 0x100342ad
imul ecx, eax, 0x1f4
cmp dword [esi + 0x78], ecx
jae 0x100342a2
sub ecx, 0x1f4
sub eax, 1
jns 0x10034290
jmp 0x100342ad
inc eax
imul eax, eax, 0x1f4
test eax, eax
jne 0x100342b0
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x84]
cmp dword [ebp + 0xc], ebx
je 0x100342d2
test byte [ebp + 0x10], 1
je 0x100342c6
add eax, 0x1f4
test byte [ebp + 0x10], 0x10
je 0x100342d2
add ecx, 0x800
push ecx
push eax
lea edx, [esp + 0x120]
lea ecx, [esp + 0x78]
call fcn.10033a90
test eax, eax
je 0x10034870
cmp edi, 0xffffffff
je 0x10034870
push ebx
push sym.WAB32.dll_Ordinal_20
push 3
push ebx
push 3
push 0xc0000000
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
je 0x10034861
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x44], eax
push 6
pop edi
mov ecx, dword [ecx + 0x10]
mov eax, dword [ecx + 0x78]
lea edx, [ecx + 0x24]
mov dword [esp + 0xe8], eax
mov dword [esp + 0x80], ebx
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x84], eax
mov eax, dword [ecx + 0x80]
mov dword [esp + 0xf0], eax
mov eax, dword [ecx + 0x88]
mov dword [esp + 0xf8], eax
mov eax, dword [ecx + 0x90]
mov dword [esp + 0x100], eax
mov eax, dword [ecx + 0x94]
mov dword [esp + 0x104], eax
mov eax, dword [ecx + 0x98]
mov dword [esp + 0x108], eax
mov eax, dword [ecx + 0x9c]
mov dword [esp + 0x10c], eax
mov eax, dword [ecx + 0xa0]
mov dword [esp + 0x110], eax
lea eax, [esp + 0x70]
sub eax, ecx
lea ecx, [esp + 0x8c]
mov esi, eax
mov eax, dword [edx - 8]
mov dword [ecx], eax
lea ecx, [ecx + 0x10]
mov eax, dword [edx]
mov dword [esi + edx], eax
lea edx, [edx + 0x10]
sub edi, 1
jne 0x100343c0
mov esi, dword [esp + 0x10]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10034405
push ebx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebx
push eax
push 0xa4
lea eax, [esp + 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x10034407
mov eax, ebx
mov edi, dword [esp + 0x20]
test eax, eax
je 0x10034861
push dword [esp + 0xf8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x28], eax
test eax, eax
je 0x10034861
mov eax, dword [esp + 0x24]
push ebx
push ebx
mov eax, dword [eax + 0x10]
push dword [eax + 0x8c]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10034861
push ebx
push ebx
push dword [esp + 0x104]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10034861
push ebx
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x100]
push dword [esp + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10034861
mov eax, dword [esp + 0xf8]
cmp dword [esp + 0x14], eax
jne 0x10034861
push ebx
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esp + 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10034861
lea ecx, [esp + 0x28]
call fcn.10037062
lea edi, [esp + 0x9c]
mov dword [esp + 0x1c], 1
push 0x30
pop eax
mov ecx, edi
sub eax, ecx
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x18]
call fcn.10037062
push dword [edi]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x10034861
mov eax, dword [esp + 0x24]
push ebx
push ebx
mov eax, dword [eax + 0x10]
add eax, dword [esp + 0x3c]
push dword [eax + edi]
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10034861
push ebx
push ebx
push dword [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10034861
push ebx
lea eax, [esp + 0x18]
push eax
push dword [edi]
push dword [esp + 0x24]
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10034861
mov eax, dword [edi]
cmp dword [esp + 0x14], eax
jne 0x10034861
push ebx
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10034861
lea ecx, [esp + 0x18]
call fcn.10037062
mov eax, dword [esp + 0x1c]
add edi, 0x10
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 6
jb 0x100344d4
mov edi, dword [esp + 0x20]
xor edx, edx
mov ecx, dword [esp + 0x24]
push edi
call fcn.10031469
test eax, eax
je 0x10034861
mov eax, dword [esp + 0xd8]
mov edx, ebx
mov ecx, dword [esp + 0xe0]
add eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x94], edx
jbe 0x100347db
mov esi, dword [esp + 0x24]
push ebx
push ebx
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + edx*8]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x54], eax
push dword [ecx + edx*8 + 4]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1003460f
push ebx
push 0x20
lea edx, [esp + 0x58]
mov ecx, edi
call fcn.10035ff0
jmp 0x10034611
mov eax, ebx
test eax, eax
je 0x10034861
push dword [esp + 0x48]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x18]
lea esi, [esp + 0x54]
push 1
push dword [esp + 0x4c]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x48]
mov edx, dword [edx + ecx*8 + 4]
mov ecx, dword [eax + 0x14]
call fcn.100352ac
test eax, eax
je 0x100347bd
lea ecx, [esp + 0x2c]
call fcn.10037062
push dword [esp + 0x64]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x10034861
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ebx
push ecx
push dword [esp + 0x6c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10034861
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x64]
jne 0x10034861
lea ecx, [esp + 0x30]
call fcn.10037062
push dword [esp + 0x6c]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x30], eax
test eax, eax
je 0x10034861
push ebx
lea ecx, [esp + 0x18]
push ecx
push dword [esp + 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10034861
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jne 0x10034865
push ebx
push ebx
push dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10034715
push ebx
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
push eax
push 0x20
lea eax, [esp + 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x10034717
mov eax, ebx
test eax, eax
je 0x10034861
push ebx
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x6c]
push dword [esp + 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10034861
push ebx
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x74]
push dword [esp + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10034861
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x18]
add eax, dword [esp + 0x64]
add ecx, 0x20
add ecx, eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x2c]
call fcn.10037062
lea ecx, [esp + 0x30]
call fcn.10037062
push ebx
push ebx
push dword [esp + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100347ac
push ebx
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
push eax
push 8
lea eax, [esp + 0x54]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x100347ae
mov eax, ebx
test eax, eax
je 0x10034861
add dword [esp + 0x34], 8
jmp 0x100347c5
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
inc edx
mov dword [esp + 0x1c], edx
cmp edx, dword [esp + 0x94]
jb 0x100345d7
cmp dword [esp + 0x3c], ebx
jne 0x10034831
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1003480d
push ebx
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
push eax
push 0xa4
lea eax, [esp + 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1003480f
mov eax, ebx
test eax, eax
je 0x10034861
push ecx
push edi
mov ecx, esi
call fcn.100349cd
test eax, eax
je 0x10034861
mov ecx, dword [esp + 0x24]
mov edx, edi
call fcn.100340fd
mov esi, dword [esp + 0x10]
jmp 0x10034858
test esi, esi
je 0x10034840
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
jmp 0x10034844
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
push ebx
push eax
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x10034865
xor ebx, ebx
inc ebx
jmp 0x10034865
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10034870
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [esp + 0x118], 0
je 0x10034889
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x28]
call fcn.10037062
lea ecx, [esp + 0x2c]
call fcn.10037062
lea ecx, [esp + 0x30]
call fcn.10037062
mov ecx, dword [esp + 0x324]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10087900
mov esp, ebp
pop ebp
ret 0xc