Function at 0x46b020
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0f07
mov eax, dword fs:[0]
push eax
mov eax, 0x10c0
call fcn.0056e430
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push ecx
mov dword [ebp - 0x109c], eax
lea ecx, [ebp - 0x1098]
mov eax, dword [ebp + 0x14]
push str.OperateFile::XCopyFileWithDstDirs
mov dword [ebp - 0x10cc], eax
mov dword [ebp - 0x10bc], 0
call fcn.0040a480
mov dword [ebp - 4], 0
mov esi, dword [0x608f30]
cmp esi, 0x608f30
je 0x46b11c
test byte [esi + 0x1c], 1
je 0x46b0d2
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cecd4
mov ecx, 0x1c
cmovae eax, dword [0x608f54]
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.00401840
mov esi, dword [0x608f30]
add esp, 0xc
cmp esi, 0x608f30
je 0x46b11c
test byte [esi + 0x1c], 1
je 0x46b11c
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
push dword [ebp + 0xc]
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push dword [ebp - 0x109c]
mov ecx, 0x1d
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.004303c0
mov esi, dword [0x608f30]
add esp, 0x18
push 0x208
lea eax, [ebp - 0xa48]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x638]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0xc50]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0xe58]
push 0
push eax
call fcn.00571c00
mov eax, dword [0x6184f0]
add esp, 0x3c
cmp dword [ebp - 0x109c], 0
mov dword [ebp - 0x10b4], 0
mov dword [ebp - 0x10a0], 0
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x7f8]
mov dword [ebp - 0x10b8], eax
jne 0x46b201
mov byte [ebp - 0x1094], 1
cmp esi, 0x608f30
je 0x46b964
test byte [esi + 0x1c], 1
je 0x46b964
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov ecx, 0x1e
push eax
push dword [esi + 0x14]
mov edx, 0x5cecd4
push dword [esi + 0x10]
call fcn.004018a0
add esp, 0x10
xor esi, esi
jmp 0x46b3c2
push 0x208
lea eax, [ebp - 0x840]
push 0
push eax
call fcn.00571c00
add esp, 0xc
mov dword [ebp - 0x10c4], 0x208
lea eax, [ebp - 0x10c4]
push eax
lea eax, [ebp - 0x840]
push eax
push 0
call dword [sym.imp.mscms.dll_GetColorDirectoryW]
test eax, eax
je 0x46b2a5
lea eax, [ebp - 0x840]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46b2a5
push eax
lea eax, [ebp - 0x840]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46b2a5
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46b2a5
test byte [ecx + 0x1c], 4
je 0x46b2a5
cmp dword [0x608f68], 8
lea edx, [ebp - 0x840]
push edx
mov eax, 0x608f54
mov edx, 0x5cecd4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1f
call fcn.00405920
add esp, 0x10
push 0x208
lea eax, [ebp - 0x228]
xorps xmm0, xmm0
push 0
or esi, 0xffffffff
push eax
mov dword [ebp - 0x10a8], esi
movups xmmword [ebp - 0x20], xmm0
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x1060]
push 0
push eax
call fcn.00571c00
add esp, 0x18
cmp dword [ebp - 0x10b8], 2
jne 0x46b324
lea ecx, [ebp - 0x10a4]
call fcn.00430700
push 0
lea eax, [ebp - 0x10a8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10a4]
call fcn.00436650
lea ecx, [ebp - 0x10a4]
mov byte [ebp - 4], 0
call fcn.004307d0
mov esi, dword [ebp - 0x10a8]
cmp esi, 2
jge 0x46b374
push 1
push esi
lea eax, [ebp - 0xc50]
mov ecx, 0x618568
push eax
lea eax, [ebp - 0xe58]
push eax
push dword [ebp + 0xc]
push edi
call fcn.00448fb0
test eax, eax
jne 0x46b36e
mov eax, dword [0x6184f4]
lea ecx, [ebp - 0x10a0]
push ecx
lea ecx, [ebp - 0x10b4]
push ecx
push edi
lea ecx, [ebp - 0xc50]
push ecx
mov ecx, dword [eax + 8]
call fcn.00532c60
test eax, eax
je 0x46b3ec
inc esi
cmp esi, 2
jl 0x46b324
mov edx, dword [0x608f30]
mov byte [ebp - 0x1094], 1
cmp edx, 0x608f30
je 0x46b3bd
test byte [edx + 0x1c], 1
je 0x46b3bd
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 1
cmovae eax, dword [0x608f54]
mov ecx, 0x23
push eax
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x5cecd4
call fcn.004018a0
add esp, 0x10
mov esi, 1
lea ecx, [ebp - 0x1098]
call fcn.0040a570
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp - 0x109c]
lea eax, [ebp - 0xa48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xa48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
cmp dword [ebp - 0x10b4], 0
mov dword [ebp - 0x10c0], 0
jbe 0x46b374
mov esi, dword [ebp - 0x10a0]
mov edx, dword [0x608f30]
add esi, 0x208
mov dword [ebp - 0x10a4], esi
nop dword [eax + eax]
cmp edx, 0x608f30
je 0x46b482
test byte [edx + 0x1c], 4
je 0x46b482
cmp dword [0x608f68], 8
lea eax, [esi - 0x208]
push esi
push eax
mov ecx, 0x608f54
cmovae ecx, dword [0x608f54]
push ecx
push dword [edx + 0x14]
mov ecx, 0x20
push dword [edx + 0x10]
mov edx, 0x5cecd4
call fcn.00430170
add esp, 0x14
lea edi, [esi - 0x208]
push 0x5c6930
push edi
mov dword [ebp - 0x10a8], edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x46b4ec
mov edx, dword [0x608f30]
cmp edx, 0x608f30
je 0x46b8de
test byte [edx + 0x1c], 4
je 0x46b8de
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov ecx, 0x21
push eax
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x5cecd4
call fcn.00405920
add esp, 0x10
jmp 0x46b8d8
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp - 0x10b8], 2
jne 0x46b86f
push 0
push 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x228]
push eax
push 8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc50]
push eax
call fcn.00580f0a
push 0
push 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1060]
push 0x104
push eax
call fcn.00580cd3
add esp, 0x3c
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x46b97f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x109c], eax
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x46b597
movzx eax, ax
lea ecx, [ebp - 0x109c]
push eax
call fcn.00403020
jmp 0x46b5c2
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b5a0
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x109c]
call fcn.00403bb0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x109c]
push 0x5c
push esi
call fcn.00571054
add esp, 8
test eax, eax
jne 0x46b5e0
or eax, 0xffffffff
jmp 0x46b5e4
sub eax, esi
sar eax, 1
mov edi, dword [esi - 0xc]
xor edx, edx
test eax, eax
cmovns edx, eax
mov dword [ebp - 0x10ac], edx
cmp edx, 0x7ffffffe
jg 0x46b975
lea eax, [edx + 1]
cmp eax, edi
jle 0x46b619
mov eax, edi
sub eax, edx
mov dword [ebp - 0x10a0], eax
mov ecx, eax
test eax, eax
jle 0x46b693
jmp 0x46b628
mov ecx, edi
mov eax, 1
sub ecx, edx
mov dword [ebp - 0x10a0], eax
sub ecx, eax
sub edi, eax
cmp dword [esi - 4], 1
mov dword [ebp - 0x10b0], ecx
jle 0x46b65e
push dword [esi - 0xc]
lea ecx, [ebp - 0x109c]
call fcn.00403e30
mov esi, dword [ebp - 0x109c]
mov edx, dword [ebp - 0x10ac]
mov eax, dword [ebp - 0x10a0]
mov ecx, dword [ebp - 0x10b0]
add eax, edx
lea ecx, [ecx*2 + 2]
push ecx
lea eax, [esi + eax*2]
push eax
push ecx
lea eax, [esi + edx*2]
push eax
call fcn.004013c0
add esp, 0x10
test edi, edi
js 0x46b96b
cmp edi, dword [esi - 8]
jg 0x46b96b
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
push 0x5c
push esi
call fcn.00571054
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x46b6a9
or ecx, 0xffffffff
jmp 0x46b6ad
sub ecx, esi
sar ecx, 1
mov eax, dword [esi - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x10c8]
push eax
lea ecx, [ebp - 0x109c]
call fcn.0041d2b0
or dword [ebp - 0x10bc], 1
mov byte [ebp - 4], 4
lea edx, [esi - 0x10]
mov eax, dword [ebp - 0x10c8]
mov dword [ebp - 0x10b0], edx
lea edi, [eax - 0x10]
cmp edi, edx
je 0x46b743
cmp dword [edx + 0xc], 0
lea esi, [edx + 0xc]
jl 0x46b72e
mov ecx, dword [edi]
cmp ecx, dword [edx]
jne 0x46b72e
mov ecx, edi
call fcn.00403af0
mov dword [ebp - 0x10ac], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x46b723
mov esi, dword [ebp - 0x10b0]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10ac]
lea esi, [eax + 0x10]
mov dword [ebp - 0x109c], esi
jmp 0x46b743
push dword [eax - 0xc]
lea ecx, [ebp - 0x109c]
push eax
call fcn.00403bb0
mov esi, dword [ebp - 0x109c]
mov byte [ebp - 4], 3
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x46b75c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 0xc], 0
jg 0x46b767
or eax, 0xffffffff
jmp 0x46b77f
push 0x5c
push esi
call fcn.00570b1c
add esp, 8
test eax, eax
jne 0x46b77b
or eax, 0xffffffff
jmp 0x46b77f
sub eax, esi
sar eax, 1
mov edi, dword [esi - 0xc]
xor edx, edx
test eax, eax
cmovns edx, eax
mov dword [ebp - 0x10ac], edx
cmp edx, 0x7ffffffe
jg 0x46b975
lea eax, [edx + 1]
cmp eax, edi
mov eax, edi
jle 0x46b7b4
sub eax, edx
mov ecx, eax
mov dword [ebp - 0x10a0], eax
test ecx, ecx
jle 0x46b82c
jmp 0x46b7c1
mov ecx, 1
sub eax, edx
mov dword [ebp - 0x10a0], ecx
sub eax, ecx
sub edi, ecx
cmp dword [esi - 4], 1
mov dword [ebp - 0x10b0], eax
jle 0x46b7f1
push dword [esi - 0xc]
lea ecx, [ebp - 0x109c]
call fcn.00403e30
mov esi, dword [ebp - 0x109c]
mov eax, dword [ebp - 0x10b0]
mov edx, dword [ebp - 0x10ac]
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x10a0]
add eax, edx
push ecx
lea eax, [esi + eax*2]
push eax
push ecx
lea eax, [esi + edx*2]
push eax
call fcn.004013c0
add esp, 0x10
test edi, edi
js 0x46b96b
cmp edi, dword [esi - 8]
jg 0x46b96b
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
push esi
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46b863
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x10a8]
mov esi, dword [ebp - 0x10a4]
push esi
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 0x10cc]
test eax, eax
jne 0x46b88a
push edi
jmp 0x46b88b
push eax
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push esi
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x46b8d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
je 0x46b908
mov edx, dword [0x608f30]
mov ecx, dword [ebp - 0x10c0]
add esi, 0x410
inc ecx
mov dword [ebp - 0x10a4], esi
mov dword [ebp - 0x10c0], ecx
cmp ecx, dword [ebp - 0x10b4]
jb 0x46b440
jmp 0x46b37a
push 0xa4
push dword [0x6184fc]
call fcn.00502d80
add esp, 8
mov byte [ebp - 0x1094], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46b964
test byte [ecx + 0x1c], 1
je 0x46b964
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x22
call fcn.004018a0
add esp, 0x10
xor esi, esi
jmp 0x46b3c2
push 0x80070057
call fcn.004013a0
push 0x80070216
call fcn.004013a0
push 0x80004005
call fcn.004013a0
int3