Function at 0x100042db
Capabilities:
Copy file
Get common file path
Move file
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb20
push ebx
and byte [ebp - 0x810], 0
push esi
push edi
push 0x40
xor eax, eax
pop edx
lea edi, [ebp - 0x80f]
mov ecx, edx
and byte [ebp - 0x70c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x70b]
and byte [ebp - 0x914], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x913]
and byte [ebp - 0x104], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x103]
and byte [ebp - 0x208], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x207]
and byte [ebp - 0x30c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x30b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x810]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x70c]
push 0x10093d74
push eax
call esi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x70c]
push eax
push ebx
call fcn.100038bb
add esp, 0x10
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x100046e1
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x70c]
push 0x10093d50
push eax
call esi
lea eax, [ebp - 0x70c]
push eax
push ebx
call fcn.100038bb
add esp, 0x14
lea eax, [ebp - 0x914]
push edi
push eax
push dword [section.xdoors_d]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x100046da
lea eax, [ebp - 0x914]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
test eax, eax
pop ecx
je 0x10004419
inc eax
jmp 0x1000441f
lea eax, [ebp - 0x914]
push eax
lea eax, [ebp - 0x104]
push 0x10093664
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x70c]
push 0x10093d34
push eax
call esi
lea eax, [ebp - 0x70c]
push eax
push ebx
call fcn.100038bb
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x208]
push 0x10093d2c
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x24
lea eax, [ebp - 0x208]
push 1
pop edi
push edi
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
je 0x100046b1
lea eax, [ebp - 0x70c]
push 0x10093d04
push eax
call esi
lea eax, [ebp - 0x70c]
push eax
push ebx
call fcn.100038bb
push 0x20c
lea eax, [ebp - 0xb20]
push 0
push eax
call sub.MSVCRT.dll_memset
push 0xff
lea eax, [ebp - 0xb1c]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
and dword [ebp - 0xa1c], 0
add esp, 0x30
lea eax, [ebp - 0xb20]
mov dword [ebp - 0xb20], ebx
push eax
mov dword [ebp - 0xa18], edi
call fcn.1000399a
test eax, eax
je 0x10004676
push 0x2f2f
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
test eax, eax
pop ecx
je 0x1000466f
inc eax
push eax
lea eax, [ebp - 0x30c]
push 0x10093664
push eax
call esi
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x70c]
push 0x10093ce8
push eax
call esi
lea eax, [ebp - 0x70c]
push eax
push ebx
call fcn.100038bb
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 0x28
test eax, eax
je 0x10004634
lea eax, [ebp - 0x104]
push 0
push eax
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x30c]
push eax
je 0x100045c9
lea eax, [ebp - 0x70c]
push 0x10093cc0
push eax
call esi
lea eax, [ebp - 0x70c]
push eax
push ebx
call fcn.100038bb
add esp, 0x18
jmp 0x10004652
lea eax, [ebp - 0x70c]
push 0x10093c90
push eax
call esi
lea eax, [ebp - 0x70c]
push eax
push ebx
call fcn.100038bb
add esp, 0x18
lea eax, [ebp - 0x104]
push edi
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x1000462c
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
push 0x10093c54
lea eax, [ebp - 0x70c]
push eax
call esi
lea eax, [ebp - 0x70c]
push eax
push ebx
call fcn.100038bb
add esp, 0x18
or eax, 0xffffffff
jmp 0x10004705
lea eax, [ebp - 0x70c]
push 0x10093c30
push eax
call esi
lea eax, [ebp - 0x70c]
push eax
push ebx
call fcn.100038bb
add esp, 0x10
lea eax, [ebp - 0x70c]
push 0x10093bf0
push eax
call esi
pop ecx
mov dword [0x1008e5c0], edi
pop ecx
xor esi, esi
jmp 0x100046f4
push 0x10093bc0
jmp 0x100046e6
lea eax, [ebp - 0x104]
push edi
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
je 0x100046a7
push 0x10093b88
jmp 0x10004613
push 0x10093b54
jmp 0x10004613
lea eax, [ebp - 0x70c]
push 0x10093afc
push eax
call esi
lea eax, [ebp - 0x70c]
push eax
push ebx
call fcn.100038bb
add esp, 0x18
mov dword [0x1008e5c0], edi
jmp 0x1000462c
push 0x10093acc
jmp 0x100046e6
push 0x10093a98
lea eax, [ebp - 0x70c]
push eax
call esi
pop ecx
or esi, 0xffffffff
pop ecx
lea eax, [ebp - 0x70c]
push eax
push ebx
call fcn.100038bb
pop ecx
mov eax, esi
pop ecx
pop edi
pop esi
pop ebx
leave
ret