Function at 0x47dcc0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3d01
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x4eb6b8]
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, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x158], edi
cmp dword [edi + 0x10], ebx
je 0x47dec9
cmp dword [esi + 0x10], ebx
je 0x47dec9
cmp dword [esi + 0x14], 8
jb 0x47dd1e
mov eax, dword [esi]
jmp 0x47dd20
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
cmp al, bl
je 0x47dec9
mov ecx, esi
call fcn.0047c950
test al, al
je 0x47dd78
cmp dword [edi + 0x10], ebx
je 0x47dd71
cmp dword [edi + 0x14], 8
jb 0x47dd4f
mov eax, dword [edi]
jmp 0x47dd51
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
cmp al, bl
je 0x47dd71
mov ecx, edi
call fcn.0047c950
test al, al
je 0x47dec9
mov ecx, edi
call fcn.0047cf00
mov edi, 7
xor eax, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
mov dword [ebp - 4], ebx
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x48]
push edx
mov edx, dword [ebp - 0x150]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x148], esp
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push ebx
mov word [ecx], ax
push edx
or eax, 0xffffffff
lea esi, [ebp - 0x64]
call fcn.004138e0
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.0047d820
add esp, 0x20
cmp al, bl
jne 0x47de27
mov byte [ebp - 4], bl
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x47ddf6
mov eax, dword [ebp - 0x48]
push eax
call fcn.0049b30a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x50], esi
jb 0x47de1a
mov edx, dword [ebp - 0x64]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
mov word [ebp - 0x64], ax
xor al, al
jmp 0x47e4b9
xor ecx, ecx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], cx
mov byte [ebp - 4], 3
xor edx, edx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], dx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x158]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x148], esp
push ebx
push eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
lea esi, [ebp - 0x80]
mov word [ecx], dx
call fcn.004138e0
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
mov ecx, esi
call fcn.0047d820
add esp, 0x20
cmp al, bl
jne 0x47ded0
mov byte [ebp - 4], 3
lea esi, [ebp - 0x9c]
call fcn.00410c70
mov byte [ebp - 4], 1
lea esi, [ebp - 0x80]
call fcn.00410c70
mov byte [ebp - 4], bl
lea esi, [ebp - 0x48]
call fcn.00410c70
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x64]
call fcn.00410c70
xor al, al
jmp 0x47e4bf
mov esi, dword [ebp - 0x150]
mov ecx, esi
call fcn.0047c950
test al, al
jne 0x47dffb
lea ecx, [ebp - 0x80]
call fcn.0047cf00
test al, al
je 0x47de94
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x8c], ebx
je 0x47df02
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.0047ef40
add esp, 0xc
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2c]
call fcn.0047cc30
test al, al
je 0x47df79
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.0047bf50
test al, al
je 0x47df79
mov byte [ebp - 4], 4
lea esi, [ebp - 0x2c]
call fcn.00410c70
mov byte [ebp - 4], 3
lea esi, [ebp - 0x9c]
call fcn.00410c70
mov byte [ebp - 4], 1
lea esi, [ebp - 0x80]
call fcn.00410c70
mov byte [ebp - 4], bl
lea esi, [ebp - 0x48]
call fcn.00410c70
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x64]
call fcn.00410c70
mov al, 1
jmp 0x47e4bf
lea esi, [ebp - 0x2c]
call fcn.0047d770
mov ecx, dword [ebp - 0x2c]
mov edx, 8
cmp dword [ebp - 0x18], edx
jae 0x47df90
mov ecx, esi
mov eax, dword [ebp - 0x150]
cmp dword [eax + 0x14], edx
jb 0x47df9d
mov eax, dword [eax]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne byte [ebp - 0x149]
mov byte [ebp - 4], 4
lea esi, [ebp - 0x2c]
call fcn.00410c70
mov byte [ebp - 4], 3
lea esi, [ebp - 0x9c]
call fcn.00410c70
mov byte [ebp - 4], 1
lea esi, [ebp - 0x80]
call fcn.00410c70
mov byte [ebp - 4], bl
lea esi, [ebp - 0x48]
call fcn.00410c70
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x64]
call fcn.00410c70
mov al, byte [ebp - 0x149]
jmp 0x47e4bf
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], ebx
mov byte [ebp - 4], 7
push ebx
push 1
lea eax, [ebp - 0x178]
push eax
push esi
call fcn.0047eaa0
mov ecx, dword [ebp - 0x174]
mov esi, dword [ebp - 0x178]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add esp, 0x10
add ecx, edx
mov dword [ebp - 0x148], ebx
je 0x47e307
mov dword [ebp - 0x154], ebx
mov edx, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x150]
mov ecx, dword [ecx + 0x10]
mov eax, dword [edx + esi + 0x10]
add edx, esi
sub eax, ecx
dec eax
push eax
lea eax, [ebp - 0x10c]
inc ecx
push eax
call fcn.0046fe00
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x158]
xor ecx, ecx
push ebx
mov word [ebp - 0xb8], cx
push edx
or eax, 0xffffffff
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
call fcn.004138e0
mov byte [ebp - 4], 9
push 0x5c
lea eax, [ebp - 0xb8]
call fcn.0046f940
add esp, 4
push 0x2f
lea eax, [ebp - 0xb8]
call fcn.0046f940
xor eax, eax
add esp, 4
mov word [ebp - 0x2c], ax
push 1
mov eax, 0x4cccdc
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
call fcn.00415f60
mov byte [ebp - 4], 0xa
xor ecx, ecx
push 1
mov eax, 0x4cccdc
lea esi, [ebp - 0xd4]
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], cx
call fcn.00415f60
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0xb8]
push edx
lea eax, [ebp - 0x128]
push eax
mov ecx, esi
call fcn.00479bf0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x144]
push edx
mov ecx, eax
call fcn.00419320
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xf0]
push ecx
lea edx, [ebp - 0x2c]
mov ecx, eax
call fcn.00479b30
add esp, 0x14
mov byte [ebp - 4], 0xf
mov esi, 8
cmp dword [ebp - 0x130], esi
jb 0x47e180
mov edx, dword [ebp - 0x144]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x134], ebx
mov word [ebp - 0x144], ax
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x114], esi
jb 0x47e1b0
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.0049b30a
add esp, 4
xor edx, edx
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x118], ebx
mov word [ebp - 0x128], dx
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0xc0], esi
jb 0x47e1e0
mov eax, dword [ebp - 0xd4]
push eax
call fcn.0049b30a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], cx
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x18], esi
jb 0x47e20a
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.0047cf00
mov eax, dword [ebp - 0x154]
add eax, dword [ebp - 0x178]
lea ecx, [ebp - 0xf0]
push ecx
push eax
call fcn.0047dcc0
add esp, 8
mov byte [ebp - 4], 9
cmp dword [ebp - 0xdc], esi
jb 0x47e258
mov ecx, dword [ebp - 0xf0]
push ecx
call fcn.0049b30a
add esp, 4
xor edx, edx
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xe0], ebx
mov word [ebp - 0xf0], dx
mov byte [ebp - 4], 8
cmp dword [ebp - 0xa4], esi
jb 0x47e288
mov eax, dword [ebp - 0xb8]
push eax
call fcn.0049b30a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], cx
mov byte [ebp - 4], 7
cmp dword [ebp - 0xf8], esi
jb 0x47e2b8
mov edx, dword [ebp - 0x10c]
push edx
call fcn.0049b30a
add esp, 4
mov ecx, dword [ebp - 0x174]
mov esi, dword [ebp - 0x178]
inc dword [ebp - 0x148]
add dword [ebp - 0x154], 0x1c
xor eax, eax
sub ecx, esi
mov word [ebp - 0x10c], ax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0xfc], ebx
cmp dword [ebp - 0x148], ecx
jb 0x47e057
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], ebx
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x150]
push ebx
push ebx
lea edx, [ebp - 0x168]
push edx
push eax
call fcn.0047eaa0
mov ecx, dword [ebp - 0x164]
sub ecx, dword [ebp - 0x168]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add esp, 0x10
xor esi, esi
add ecx, edx
je 0x47e3a5
mov dword [ebp - 0x148], ebx
mov eax, dword [ebp - 0x168]
mov edx, dword [ebp - 0x158]
add eax, dword [ebp - 0x148]
push edx
push eax
call fcn.0047dcc0
mov ecx, dword [ebp - 0x164]
sub ecx, dword [ebp - 0x168]
add dword [ebp - 0x148], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add esp, 8
cmp esi, eax
jb 0x47e35e
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x168]
cmp eax, ebx
je 0x47e3d2
mov edi, dword [ebp - 0x164]
call fcn.00416490
mov ecx, dword [ebp - 0x168]
push ecx
call fcn.0049b30a
add esp, 4
mov edi, 7
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], ebx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x178]
cmp eax, ebx
je 0x47e411
mov edi, dword [ebp - 0x174]
call fcn.00416490
mov edx, dword [ebp - 0x178]
push edx
call fcn.0049b30a
add esp, 4
mov edi, 7
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], ebx
mov byte [ebp - 4], 3
mov esi, 8
cmp dword [ebp - 0x88], esi
jb 0x47e443
mov eax, dword [ebp - 0x9c]
push eax
call fcn.0049b30a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], cx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x6c], esi
jb 0x47e46d
mov edx, dword [ebp - 0x80]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], esi
jb 0x47e48d
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0049b30a
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x50], esi
jb 0x47e4b1
mov eax, dword [ebp - 0x64]
push eax
call fcn.0049b30a
add esp, 4
xor ecx, ecx
mov word [ebp - 0x64], cx
mov al, 1
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], edi
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.0049b315
mov esp, ebp
pop ebp
ret