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

Disassembly:
push 0xffffffffffffffff
push 0x495c1c
mov eax, dword fs:[0]
push eax
mov eax, 0x6124
call fcn.00479200
mov eax, dword [0x4bd750]
xor eax, esp
mov dword [esp + 0x6120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bd750]
xor eax, esp
push eax
lea eax, [esp + 0x6138]
mov dword fs:[0], eax
mov eax, dword [esp + 0x614c]
mov ebp, dword [esp + 0x6148]
push str.ApplyCopyList
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
call fcn.004169a0
add esp, 4
xor ebx, ebx
xor edi, edi
mov eax, dword [ebp + 0x80]
test eax, eax
mov dword [esp + 0x18], edi
je 0x4102c3
mov ecx, dword [ebp + 0x84]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jge 0x410993
push 0x103
lea ecx, [esp + 0x31]
push 0
push ecx
mov byte [esp + 0x38], 0
call fcn.00475860
mov eax, dword [ebp + 0x80]
add esp, 0xc
test eax, eax
je 0x41030d
mov ecx, dword [ebp + 0x84]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x410312
call fcn.0047263c
mov eax, dword [ebp + 0x80]
add eax, edi
cmp dword [eax + 0x18], 0x10
jb 0x410325
mov eax, dword [eax + 4]
jmp 0x410328
add eax, 4
push eax
push 0x4ac698
lea edx, [esp + 0x34]
call fcn.00413510
mov eax, dword [esp + 0x28]
add esp, 8
lea edx, [esp + 0x2c]
call fcn.00425760
test eax, eax
mov dword [esp + 0x24], eax
je 0x410666
push 0x1fff
lea edx, [esp + 0x139]
push 0
push edx
mov byte [esp + 0x140], 0
call fcn.00475860
add esp, 0xc
push 0x1fff
lea eax, [esp + 0x4139]
push 0
push eax
mov byte [esp + 0x4140], 0
call fcn.00475860
lea eax, [esp + 0x140]
add esp, 0xc
lea edx, [eax + 1]
jmp 0x4103a0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4103a0
sub eax, edx
mov esi, eax
mov eax, dword [ebp + 0x80]
test eax, eax
je 0x4103d6
mov ecx, dword [ebp + 0x84]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4103db
call fcn.0047263c
mov eax, dword [ebp + 0x80]
add eax, edi
cmp dword [eax + 0x18], 0x10
jb 0x4103ee
mov eax, dword [eax + 4]
jmp 0x4103f1
add eax, 4
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4103f4
sub eax, edx
cmp esi, 0x104
jg 0x41040e
cmp eax, 0x104
jle 0x41041b
push str.nSize1____MAX_PATH__nSize2____MAX_PATH
call fcn.004169a0
add esp, 4
mov eax, dword [ebp + 0x80]
test eax, eax
je 0x410444
mov ecx, dword [ebp + 0x84]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x410449
call fcn.0047263c
mov eax, dword [ebp + 0x80]
add eax, edi
cmp dword [eax + 0x18], 0x10
jb 0x41045c
mov eax, dword [eax + 4]
jmp 0x41045f
add eax, 4
mov esi, eax
lea edi, [esp + 0x134]
call fcn.00421a90
mov eax, dword [ebp + 0x80]
test eax, eax
je 0x410496
mov ecx, dword [ebp + 0x84]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x41049b
call fcn.0047263c
mov edi, dword [ebp + 0x80]
mov esi, dword [esp + 0x18]
add edi, esi
call fcn.00420560
mov eax, dword [ebp + 0x80]
test eax, eax
je 0x4104d5
mov ecx, dword [ebp + 0x84]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4104da
call fcn.0047263c
mov eax, dword [ebp + 0x80]
add eax, esi
cmp dword [eax + 0x18], 0x10
jb 0x4104ed
mov eax, dword [eax + 4]
jmp 0x4104f0
add eax, 4
push 0x4ab8e8
push eax
call fcn.004737e0
add esp, 8
test eax, eax
jne 0x41054c
mov ecx, str.dnlauncher.tmp
call fcn.00413ed0
push 0
push 0x4ab8e8
call fcn.0047395f
add esp, 8
test eax, eax
jne 0x410537
push str.dnlauncher.tmp
push 0x4aad1c
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x410675
push str.Apply_Launcher_Patch
call fcn.004169a0
add esp, 4
mov dword [esp + 0x1c], 2
cmp byte [esp + 0x134], 0
je 0x4105fe
lea ecx, [esp + 0x134]
push ecx
call fcn.00421d20
add esp, 4
lea edx, [esp + 0x4134]
push edx
push 0x2000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x1fff
lea eax, [esp + 0x2139]
push 0
push eax
mov byte [esp + 0x2140], 0
call fcn.00475860
add esp, 0xc
lea ecx, [esp + 0x4134]
push ecx
lea edx, [esp + 0x2138]
push 0x2000
push edx
call fcn.004739e4
add esp, 0xc
push 0x4ac5e0
lea eax, [esp + 0x2138]
push 0x2000
push eax
call fcn.00473973
add esp, 0xc
lea ecx, [esp + 0x134]
push ecx
lea edx, [esp + 0x2138]
push 0x2000
push edx
call fcn.00473973
add esp, 0xc
lea eax, [esp + 0x2134]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, dword [esp + 0x24]
call fcn.00424bb0
test al, al
je 0x410780
cmp byte [esp + 0x134], 0
je 0x410627
lea ecx, [esp + 0x4134]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
add dword [ebp + 0x9c], 1
mov eax, dword [ebp + 0x9c]
cdq
mov dword [0x4c5cf0], eax
mov dword [0x4c5cf4], edx
mov eax, dword [ebp + 0xa0]
cdq
mov dword [0x4c5cf8], eax
mov dword [0x4c5cfc], edx
cmp dword [ebp + 0x48], 0
jne 0x4108d2
mov edi, dword [esp + 0x18]
add ebx, 1
add edi, 0x1c
jmp 0x41029a
call fcn.0045be93
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41068f
push 0x80004005
call fcn.00401c80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x6140], 0
call fcn.00406040
mov eax, dword [eax + 0x58]
lea ecx, [esp + 0x1c]
lea edi, [eax + 0x3fc]
push ecx
call fcn.00413e50
add esp, 4
mov byte [esp + 0x6140], 1
mov edx, dword [eax]
push 1
push edx
lea eax, [esp + 0x20]
push str._s__d
push eax
call fcn.00401850
mov byte [esp + 0x6150], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41070c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push edi
call fcn.004017d0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00413dd0
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx]
add esp, 4
push 1
call eax
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00425110
push str.Launcher_Patch_Failed_
xor esi, esi
call fcn.00416940
add esp, 4
mov dword [esp + 0x6140], 0xffffffff
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x410779
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
xor eax, eax
jmp 0x410997
lea ebp, [esi + 4]
push 0x4ab8e8
push ebp
call fcn.004737e0
add esp, 8
test eax, eax
jne 0x41087a
call fcn.0045be93
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4107b3
push 0x80004005
call fcn.00401c80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x6140], 2
call fcn.00406040
mov eax, dword [eax + 0x58]
lea ecx, [esp + 0x28]
lea edi, [eax + 0x3fc]
push ecx
call fcn.00413e50
add esp, 4
mov byte [esp + 0x6140], 3
mov edx, dword [eax]
push 2
push edx
lea eax, [esp + 0x20]
push str._s__d
push eax
call fcn.00401850
mov byte [esp + 0x6150], 2
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410830
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x20], esp
mov edi, esp
push esi
call fcn.004017d0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00413dd0
add esp, 4
mov dword [esp + 0x6140], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4108a0
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x4108a0
call fcn.00406040
mov eax, dword [eax + 0x58]
push ecx
lea edi, [eax + 0x3fa]
mov eax, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00413e50
add esp, 4
call fcn.00413dd0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push str._s_File_Copy_Failed____d_
call fcn.004169a0
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
mov eax, dword [edx]
add esp, 0xc
push 1
call eax
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00425110
xor eax, eax
jmp 0x410997
xor esi, esi
mov ecx, dword [ebp + 0x50]
test ecx, ecx
jne 0x4108df
xor eax, eax
jmp 0x4108e7
mov eax, dword [ebp + 0x54]
sub eax, ecx
sar eax, 2
cmp esi, eax
jge 0x410982
test ecx, ecx
je 0x4108ff
mov eax, dword [ebp + 0x54]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x410904
call fcn.0047263c
mov edx, dword [ebp + 0x50]
mov eax, dword [edx + esi*4]
push eax
call fcn.00425110
mov ecx, dword [ebp + 0x50]
test ecx, ecx
je 0x410923
mov eax, dword [ebp + 0x54]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x410928
call fcn.0047263c
mov ecx, dword [ebp + 0x50]
cmp dword [ecx + esi*4], 0
je 0x41097a
test ecx, ecx
je 0x410941
mov eax, dword [ebp + 0x54]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x410946
call fcn.0047263c
mov edx, dword [ebp + 0x50]
mov ecx, dword [edx + esi*4]
test ecx, ecx
je 0x410958
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [ebp + 0x50]
test ecx, ecx
je 0x41096b
mov eax, dword [ebp + 0x54]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x410970
call fcn.0047263c
mov eax, dword [ebp + 0x50]
mov dword [eax + esi*4], 0
add esi, 1
jmp 0x4108d4
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00425110
mov eax, 4
jmp 0x410997
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x6138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6120]
xor ecx, esp
call fcn.004716ba
add esp, 0x6130
ret 8