Function at 0x100103d9
Capabilities:
Get common file path
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push ebx
push esi
push edi
push 0x200
push 0x101434e0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x200
push 0x10142a60
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x100d6fc0
push 0x10142a60
call fcn.1001bc40
add esp, 8
push 0x100d6fc4
push 0x10142a60
call fcn.1001bc40
add esp, 8
push 0x100d6fcc
push 0x10142a60
call fcn.1001bc40
add esp, 8
push 0x10142a60
call fcn.10005ffa
add esp, 4
test eax, eax
jne 0x10010484
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
je 0x10010484
cmp dword [ebp - 8], 2
je 0x10010484
push 0x40001
call fcn.100042e2
add esp, 4
mov eax, 0xffffffff
jmp 0x100107db
push 0x100d6fd4
push 0x101434e0
call fcn.1001bc40
add esp, 8
push 0x100d6fd8
push 0x101434e0
call fcn.1001bc40
add esp, 8
push 0x100d6fe0
push 0x101434e0
call fcn.1001bc40
add esp, 8
cmp dword [ebp + 8], 0
je 0x10010590
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x34c]
push eax
call fcn.1001bc30
add esp, 8
push 0x100d6fe8
lea eax, [ebp - 0x34c]
push eax
call fcn.1001bc40
add esp, 8
push 0x100d6fec
lea eax, [ebp - 0x34c]
push eax
call fcn.1001bc40
add esp, 8
push 0x100d6ff4
lea eax, [ebp - 0x34c]
push eax
call fcn.1001bc40
add esp, 8
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
je 0x10010590
push 0
push 0x101434e0
lea eax, [ebp - 0x34c]
push eax
call fcn.10006020
add esp, 0xc
test eax, eax
jne 0x1001057c
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x4000c
call fcn.100042e2
add esp, 4
mov eax, 0xffffffff
jmp 0x100107db
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x100107db
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0xc0000000
push 0x101434e0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x101436e0], eax
cmp dword [0x101436e0], 0xffffffff
jne 0x100106bf
push 0x200
push 0x10142a60
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x100d6ffc
push 0x10142a60
call fcn.1001bc40
add esp, 8
push 0x100d7000
push 0x10142a60
call fcn.1001bc40
add esp, 8
push str..dl_
push 0x10142a60
call fcn.1001bc40
add esp, 8
push 0x10142a60
push 0x101434e0
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10010663
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
je 0x10010663
cmp dword [ebp - 8], 2
je 0x10010663
cmp dword [ebp - 8], 0xb7
je 0x10010663
push 0x40002
call fcn.100042e2
add esp, 4
mov eax, 0xffffffff
jmp 0x100107db
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0xc0000000
push 0x101434e0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x101436e0], eax
cmp dword [0x101436e0], 0xffffffff
jne 0x100106ae
push 0x40003
call fcn.100042e2
add esp, 4
mov eax, 0xffffffff
jmp 0x100107db
mov eax, dword [0x101436e0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100106cb
mov eax, dword [0x101436e0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x200
push 0x101434e0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x100d7010
push 0x101434e0
call fcn.1001bc40
add esp, 8
push str.hlvdd
push 0x101434e0
call fcn.1001bc40
add esp, 8
push str..dll
push 0x101434e0
call fcn.1001bc40
add esp, 8
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0xc0000000
push 0x101434e0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x10142a58], eax
cmp dword [0x10142a58], 0xffffffff
jne 0x10010757
push 0x40003
call fcn.100042e2
add esp, 4
mov eax, 0xffffffff
jmp 0x100107db
push 0
lea eax, [ebp - 4]
push eax
call fcn.10005f7c
push eax
push 0x1003b210
mov eax, dword [0x10142a58]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100107a4
mov eax, dword [0x10142a58]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40004
call fcn.100042e2
add esp, 4
mov eax, 0xffffffff
jmp 0x100107db
mov eax, dword [0x10142a58]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100107d4
push 0x40005
call fcn.100042e2
add esp, 4
mov eax, 0xffffffff
jmp 0x100107db
xor eax, eax
jmp 0x100107db
pop edi
pop esi
pop ebx
leave
ret