Function at 0x100b9ed
Capabilities:
Copy file
Delete file
Get common file path
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x374
push ebx
push esi
push edi
or dword [ebp - 4], 0xffffffff
push 0x11
pop ecx
mov esi, 0x1002b70
lea edi, [ebp - 0x270]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp + 0xc]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x10]
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov byte [ebp - 0x228], bl
mov dword [edi], ebx
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
jne 0x100ba4e
push dword [ebp + 0xc]
push 0x1002b30
call fcn.0100a99e
pop ecx
pop ecx
mov dword [ebp - 8], 1
jmp 0x100bc15
mov esi, 0x104
push esi
lea eax, [ebp - 0x374]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100bc15
lea eax, [ebp - 0x228]
push eax
push ebx
push 0x1002b28
lea eax, [ebp - 0x374]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x100bc15
push esi
lea eax, [ebp - 0x124]
push eax
push 0x1002b18
lea eax, [ebp - 0x374]
push eax
mov byte [ebp - 0x124], bl
call fcn.0100777d
cmp byte [ebp - 0x124], bl
jne 0x100babe
push 0x7a
call fcn.01003bbf
jmp 0x100bc15
push ebx
mov esi, 0x80
push esi
push 3
push ebx
push 1
push 0x40000000
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x100bb04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x228]
push eax
push 0x1002ad8
call fcn.0100a99e
add esp, 0xc
jmp 0x100bc15
push ebx
lea ecx, [ebp - 0x10]
push ecx
push 0x44
lea ecx, [ebp - 0x270]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100bbaa
push ebx
lea eax, [ebp - 0x124]
push eax
call fcn.0100988e
test eax, eax
je 0x100bb98
push esi
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0xc]
push eax
push 2
push ebx
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 4], esi
jne 0x100bb7b
cmp dword [ebp - 0xc], ebx
jne 0x100bb98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x124]
push eax
push 0x1002a90
jmp 0x100bbbd
push dword [ebp + 0x10]
push 0x100170c
push esi
call fcn.01009d66
test eax, eax
je 0x100bbaa
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
or dword [ebp - 4], 0xffffffff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01009d66
test eax, eax
jne 0x100bbc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x228]
push eax
push 0x1002a48
call fcn.0100a99e
add esp, 0xc
jmp 0x100bc0c
push ebx
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x100bc04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x228]
push eax
push 0x1002a08
call fcn.0100a99e
add esp, 0x10
jmp 0x100bc0c
xor eax, eax
inc eax
mov dword [edi], eax
mov dword [ebp - 8], eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x228], bl
pop edi
pop esi
pop ebx
je 0x100bc2d
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 4], 0xffffffff
je 0x100bc3c
push dword [ebp - 4]
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov eax, dword [ebp - 8]
leave
ret 0xc