Function at 0x431ec0
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6b20
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6319d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
call fcn.0046d4f0
test eax, eax
je 0x431f69
push 0
push str.CFileUtils::CopyAFile_n
push 0x6616b0
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x6615b0], eax
mov eax, 0x6616b0
mov dword [0x6615b4], ecx
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x431f25
mov edi, 0x6615b0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x431f36
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x6615b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d4f0
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x431fa1
mov edx, dword [ebp + 8]
push ebx
push esi
push edx
push str.pszSourceFile_s__pszDestinationFile_s__dwDestFlag_d_n
push 0x6614b0
call fcn.00599ee3
add esp, 0x14
push 0x6614b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov dword [ebp + 0xc], 0
mov edi, 1
call fcn.004a8620
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x431fc7
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0042cf90
test eax, eax
je 0x432173
test bl, 0x20
je 0x43200d
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
push esi
push edx
call fcn.0042d240
mov edi, eax
test edi, edi
je 0x432173
test bl, 0x40
mov ebx, dword [ebp - 0x10]
je 0x432023
mov eax, dword [ebp + 8]
push esi
push eax
mov ecx, ebx
call fcn.0042e0c0
mov edi, eax
test edi, edi
je 0x432173
push esi
mov ecx, ebx
call fcn.0042cf90
test eax, eax
je 0x432061
push 8
push esi
mov ecx, ebx
call fcn.00431510
test al, 4
je 0x432061
mov ecx, dword [ebp + 8]
push esi
push ecx
mov ecx, ebx
call fcn.0042fae0
test eax, eax
je 0x432061
mov dword [ebp + 0xc], 3
jmp 0x432173
test esi, esi
jne 0x432069
xor eax, eax
jmp 0x432079
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x432070
sub eax, edx
push eax
push esi
lea ecx, [ebp + 0x10]
call fcn.004026b0
mov edi, dword [ebp + 0x10]
push 0x5c
push edi
call fcn.0059aa24
add esp, 8
test eax, eax
je 0x4320d9
sub eax, edi
cmp eax, 0xffffffff
je 0x4320d9
push eax
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp + 0x10]
call fcn.004024f0
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.00402af0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4320d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 0x10]
push edi
mov ecx, ebx
call fcn.0042d020
test eax, eax
jne 0x43211f
call fcn.0046d4f0
test eax, eax
je 0x432115
push edi
push str.Creating_folder__s_n
push 0x6613b0
call fcn.00599ee3
add esp, 0xc
push 0x6613b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push 0
push esi
mov ecx, ebx
call fcn.0042d0f0
mov ecx, dword [ebp + 8]
push 0
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x432173
push esi
mov ecx, ebx
call fcn.0042cf90
test eax, eax
jne 0x432155
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
call edi
push esi
mov ecx, ebx
call fcn.0042cf90
test eax, eax
je 0x432142
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x43216c
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp + 0xc], 1
call fcn.0046d4f0
test eax, eax
je 0x4321f4
mov edx, dword [ebp + 0xc]
push edx
push str.CFileUtils::CopyAFile_:_dwRetVal___d_n
push 0x6612b0
call fcn.00599ee3
mov eax, dword [str.EXIT:]
mov ecx, dword [0x5ccefc]
mov dword [0x6611b0], eax
mov eax, 0x6612b0
mov dword [0x6611b4], ecx
add esp, 0xc
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4321b0
mov edi, 0x6611b0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4321c1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x6611b0
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43221a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc