Function at 0x4125e9
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 0x42d3b0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x200
push 0x42cd40
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4dcde0
push 0x42cd40
call fcn.0041d138
add esp, 8
push 0x4dcde4
push 0x42cd40
call fcn.0041d138
add esp, 8
push 0x4dcdec
push 0x42cd40
call fcn.0041d138
add esp, 8
push 0x42cd40
call fcn.0040820a
add esp, 4
test eax, eax
jne 0x412694
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
je 0x412694
cmp dword [ebp - 8], 2
je 0x412694
push 0x40001
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x4129eb
push 0x4dcdf4
push 0x42d3b0
call fcn.0041d138
add esp, 8
push 0x4dcdf8
push 0x42d3b0
call fcn.0041d138
add esp, 8
push 0x4dce00
push 0x42d3b0
call fcn.0041d138
add esp, 8
cmp dword [ebp + 8], 0
je 0x4127a0
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x34c]
push eax
call fcn.0041d13c
add esp, 8
push 0x4dce08
lea eax, [ebp - 0x34c]
push eax
call fcn.0041d138
add esp, 8
push 0x4dce0c
lea eax, [ebp - 0x34c]
push eax
call fcn.0041d138
add esp, 8
push 0x4dce14
lea eax, [ebp - 0x34c]
push eax
call fcn.0041d138
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 0x4127a0
push 0
push 0x42d3b0
lea eax, [ebp - 0x34c]
push eax
call fcn.00408230
add esp, 0xc
test eax, eax
jne 0x41278c
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x4000c
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x4129eb
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4129eb
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0xc0000000
push 0x42d3b0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x42d5b0], eax
cmp dword [0x42d5b0], 0xffffffff
jne 0x4128cf
push 0x200
push 0x42cd40
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4dce1c
push 0x42cd40
call fcn.0041d138
add esp, 8
push 0x4dce20
push 0x42cd40
call fcn.0041d138
add esp, 8
push str..dl_
push 0x42cd40
call fcn.0041d138
add esp, 8
push 0x42cd40
push 0x42d3b0
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x412873
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
je 0x412873
cmp dword [ebp - 8], 2
je 0x412873
cmp dword [ebp - 8], 0xb7
je 0x412873
push 0x40002
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x4129eb
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0xc0000000
push 0x42d3b0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x42d5b0], eax
cmp dword [0x42d5b0], 0xffffffff
jne 0x4128be
push 0x40003
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x4129eb
mov eax, dword [0x42d5b0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4128db
mov eax, dword [0x42d5b0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x200
push 0x42d3b0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4dce30
push 0x42d3b0
call fcn.0041d138
add esp, 8
push str.hlvdd
push 0x42d3b0
call fcn.0041d138
add esp, 8
push str..dll
push 0x42d3b0
call fcn.0041d138
add esp, 8
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0xc0000000
push 0x42d3b0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x42cd30], eax
cmp dword [0x42cd30], 0xffffffff
jne 0x412967
push 0x40003
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x4129eb
push 0
lea eax, [ebp - 4]
push eax
call fcn.0040818c
push eax
push 0x441030
mov eax, dword [0x42cd30]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4129b4
mov eax, dword [0x42cd30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40004
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x4129eb
mov eax, dword [0x42cd30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4129e4
push 0x40005
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x4129eb
xor eax, eax
jmp 0x4129eb
pop edi
pop esi
pop ebx
leave
ret