Function at 0x419460
Capabilities:
Create directory
Get common file path
Get file attributes
Move file
Set current directory
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d9b76
mov eax, dword fs:[0]
push eax
mov eax, 0x632c
call fcn.0068e250
mov eax, dword [0x79a200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov ebx, 1
push str.ApplyCopyList
mov dword [ebp - 0x6330], eax
mov dword [ebp - 0x6338], 0
mov dword [ebp - 0x632c], ebx
call fcn.0041d700
mov esi, dword [edi + 0x70]
xor ecx, ecx
mov dword [ebp - 0x6324], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [edi + 0x74]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x419941
xor ebx, ebx
mov dword [ebp - 0x6320], ebx
push 0x104
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.00690e10
lea eax, [ebx + esi]
add esp, 0xc
cmp dword [eax + 0x14], 0xf
jbe 0x419511
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x31c]
push 0x772778
push eax
call fcn.0041a4e0
mov ecx, dword [ebp - 0x6330]
lea eax, [ebp - 0x31c]
add esp, 0xc
push eax
call fcn.00431600
mov ebx, eax
mov dword [ebp - 0x6334], ebx
test ebx, ebx
je 0x419901
push 0x2000
lea eax, [ebp - 0x231c]
push 0
push eax
call fcn.00690e10
push 0x2000
lea eax, [ebp - 0x631c]
push 0
push eax
call fcn.00690e10
lea edx, [ebp - 0x231c]
add esp, 0x18
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x419580
sub edx, ecx
mov ecx, dword [edi + 0x70]
add ecx, dword [ebp - 0x6320]
cmp dword [ecx + 0x14], 0xf
jbe 0x41959a
mov ecx, dword [ecx]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4195a0
sub ecx, esi
cmp edx, 0x104
jg 0x4195b9
cmp ecx, 0x104
jle 0x4195c6
push str.nSize1____MAX_PATH__nSize2____MAX_PATH
call fcn.0041d700
add esp, 4
mov esi, dword [edi + 0x70]
add esi, dword [ebp - 0x6320]
cmp dword [esi + 0x14], 0xf
jbe 0x4195d7
mov esi, dword [esi]
test esi, esi
je 0x419633
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4195e0
sub ecx, edx
push esi
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x231c]
push eax
call fcn.006a681f
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419602
sub ecx, edx
lea eax, [ecx - 1]
test eax, eax
js 0x41962c
mov cl, byte [eax + esi]
cmp cl, 0x5c
je 0x419961
cmp cl, 0x2f
je 0x419961
sub eax, 1
jns 0x419612
mov byte [ebp - 0x231c], 0
mov ecx, dword [edi + 0x70]
add ecx, dword [ebp - 0x6320]
call fcn.0042a7d0
mov eax, dword [edi + 0x70]
add eax, dword [ebp - 0x6320]
cmp dword [eax + 0x14], 0xf
jbe 0x419652
mov eax, dword [eax]
push 0x77182c
push eax
call fcn.006a6582
add esp, 8
test eax, eax
jne 0x4196b0
mov ecx, str.Dnlauncher.tmp
call fcn.0041ac90
push 0
push 0x77182c
call fcn.006a69ff
add esp, 8
test eax, eax
jne 0x419699
push str.Dnlauncher.tmp
push 0x7709f8
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x41998e
push str.Apply_Launcher_Patch
call fcn.0041d700
add esp, 4
mov dword [ebp - 0x632c], 2
cmp byte [ebp - 0x231c], 0
je 0x4197ce
lea eax, [ebp - 0x231c]
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.006a681f
lea ecx, [ebp - 0x114]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4196e1
sub ecx, edx
cmp byte [ebp + ecx - 0x115], 0x5c
je 0x41970d
push 0x7726c0
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.006a6a89
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x5c
push eax
call fcn.006906b0
mov esi, eax
add esp, 8
test esi, esi
je 0x419753
cmp byte [esi - 1], 0x3a
je 0x41973f
push 0
lea eax, [ebp - 0x114]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
lea eax, [esi + 1]
push 0x5c
push eax
call fcn.006906b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x419724
lea eax, [ebp - 0x631c]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x2000
lea eax, [ebp - 0x431c]
push 0
push eax
call fcn.00690e10
lea eax, [ebp - 0x631c]
push eax
lea eax, [ebp - 0x431c]
push 0x2000
push eax
call fcn.006a681f
push 0x7726c0
lea eax, [ebp - 0x431c]
push 0x2000
push eax
call fcn.006a6a89
lea eax, [ebp - 0x231c]
push eax
lea eax, [ebp - 0x431c]
push 0x2000
push eax
call fcn.006a6a89
add esp, 0x30
lea eax, [ebp - 0x431c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [ebx + 4]
test edx, edx
je 0x41982e
mov ecx, edx
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4197e0
sub ecx, esi
lea eax, [ecx - 1]
mov esi, eax
test eax, eax
js 0x41980c
mov cl, byte [eax + edx]
cmp cl, 0x5c
je 0x41996e
cmp cl, 0x2f
je 0x41996e
sub eax, 1
jns 0x4197f2
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419811
sub ecx, esi
push edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.006a681f
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x419850
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x419b4e
push 0
lea eax, [ebp - 0x6328]
mov dword [ebp - 0x6328], 0
push eax
push dword [ebx + 0x108]
push dword [ebx + 0x140]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
je 0x419b48
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x231c], 0
je 0x4198c5
lea eax, [ebp - 0x631c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
inc dword [edi + 0x88]
mov eax, dword [edi + 0x88]
cdq
mov dword [0x7adda8], eax
mov dword [0x7addac], edx
mov eax, dword [edi + 0x8c]
cdq
mov dword [0x7addb0], eax
mov dword [0x7addb4], edx
cmp dword [edi + 0x48], 0
jne 0x419af0
mov ecx, dword [edi + 0x74]
mov eax, 0x2aaaaaab
mov esi, dword [edi + 0x70]
sub ecx, esi
mov ebx, dword [ebp - 0x6320]
inc dword [ebp - 0x6324]
add ebx, 0x18
imul ecx
mov dword [ebp - 0x6320], ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x6324], eax
jl 0x4194f0
mov ebx, dword [ebp - 0x632c]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0068d76f
mov esp, ebp
pop ebp
ret 4
mov byte [ebp + eax - 0x231b], 0
jmp 0x419633
sub esi, eax
inc edx
add eax, edx
push esi
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00690890
mov byte [ebp + esi - 0x218], 0
jmp 0x41982b
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x419d42
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6324], eax
mov dword [ebp - 4], 1
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x419d38
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6320], eax
mov eax, 0x770a40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6320]
test eax, 0xffff0000
jne 0x4199f0
movzx eax, ax
push eax
call fcn.00406a60
jmp 0x4199fc
push 0
push 0x770a40
call fcn.00406bf0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6320]
push 0x3fc
mov dword [ebp - 0x6338], 4
call fcn.00406a60
mov esi, dword [ebp - 0x6320]
lea eax, [ebp - 0x6324]
push 1
push esi
push str._s__d
push eax
call fcn.00407190
or edi, 0xffffffff
mov byte [ebp - 4], 0
add esp, 0x10
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x419a55
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x6324]
add ebx, 0xfffffff0
push ebx
call fcn.004066d0
mov dword [ebp - 0x632c], eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x6328], esi
push esi
push 0
mov byte [ebp - 4], 3
call fcn.0041d690
add esp, 0xc
push 0
push 0
push esi
call fcn.0054779e
mov edx, dword [ebp - 0x632c]
mov eax, edi
mov byte [ebp - 4], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419aaa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x6334]
push 1
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x6330]
call fcn.00430f20
push str.Launcher_Patch_Failed_
push 0
call fcn.0041d690
add esp, 8
mov dword [ebp - 4], 0xffffffff
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x419ae9
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x419943
mov eax, dword [edi + 0x50]
xor esi, esi
mov ecx, dword [edi + 0x4c]
sub eax, ecx
test eax, 0xfffffffc
jle 0x419b33
mov ecx, dword [ecx + esi*4]
call fcn.00430f20
mov eax, dword [edi + 0x4c]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x419b23
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [edi + 0x4c]
mov dword [eax + esi*4], 0
mov eax, dword [edi + 0x50]
inc esi
mov ecx, dword [edi + 0x4c]
sub eax, ecx
sar eax, 2
cmp esi, eax
jl 0x419b01
mov ecx, dword [ebp - 0x6330]
call fcn.00430f20
mov eax, 4
jmp 0x419943
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 4]
push 0x77182c
push eax
call fcn.006a6582
add esp, 8
test eax, eax
jne 0x419cd4
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x419d42
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6324], eax
mov dword [ebp - 4], 5
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x419d4c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6320], eax
mov eax, 0x770a40
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x6320]
test eax, 0xffff0000
jne 0x419bc9
movzx eax, ax
push eax
call fcn.00406a60
jmp 0x419bd5
push 0
push 0x770a40
call fcn.00406bf0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6320]
push 0x3fc
mov dword [ebp - 0x6338], 1
call fcn.00406a60
mov esi, dword [ebp - 0x6320]
lea eax, [ebp - 0x6324]
push 2
push esi
push str._s__d
push eax
call fcn.00407190
or edi, 0xffffffff
mov byte [ebp - 4], 4
add esp, 0x10
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x419c2e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x6324]
add ebx, 0xfffffff0
push ebx
call fcn.004066d0
mov dword [ebp - 0x632c], eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x6328], esi
push esi
push 0
mov byte [ebp - 4], 7
call fcn.0041d690
add esp, 0xc
push 0
push 0
push esi
call fcn.0054779e
mov edx, dword [ebp - 0x632c]
mov eax, edi
mov byte [ebp - 4], 4
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419c83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x419c9c
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x6334]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 4]
push eax
push str._s_File_Copy_Failed____d_
call fcn.0041d700
mov eax, dword [ebx]
add esp, 0xc
mov ecx, ebx
push 1
call dword [eax]
mov ecx, dword [ebp - 0x6330]
call fcn.00430f20
xor eax, eax
jmp 0x419943
mov edx, 0x3fa
lea ecx, [ebp - 0x6324]
call fcn.0041abd0
mov dword [ebp - 4], 8
push dword [ebp - 0x6324]
push 0
call fcn.0041d690
add esp, 8
push 0
push 0
push dword [ebp - 0x6324]
call fcn.0054779e
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x6324]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419ca2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x419ca2
push 0x80004005
call fcn.00407310
push 0x80004005
call fcn.00407310
push 0x80004005
call fcn.00407310
int3