Function at 0x5474ec
Capabilities:
Copy file
Create directory
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5479b8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6722fc]
cmp byte [eax], 0
jne 0x547989
mov eax, dword [0x671c60]
test byte [eax], 0x10
jne 0x54754d
mov al, byte [0x5479cc]
and al, byte [ebp - 5]
mov dl, byte [0x5479d0]
cmp dl, al
je 0x547989
mov byte [ebp - 6], 0
test byte [ebp - 5], 8
jne 0x547566
push 0
mov eax, dword [0x671ed8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CreateDirectoryW
mov byte [ebp - 0x2d], 1
call fcn.00650ca0
mov dword [ebp - 0xc], eax
call fcn.00650ca0
mov ebx, eax
push 0
mov eax, dword [0x671ed8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov edx, 0x5479d8
call fcn.006254a8
mov eax, dword [0x671c60]
test byte [eax + 1], 0x40
je 0x54761e
call fcn.00659760
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0061fba0
mov eax, dword [0x671c60]
imul eax, dword [eax + 0xc], 0x3c
imul eax, eax, 0x3c
shl eax, 3
lea eax, [eax + eax*2]
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
fsubp st(1)
fstp qword [ebp - 0x24]
wait
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
dec eax
cmp eax, 0
jl 0x54761e
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 0x2c]
lea edi, [eax + edx*4]
mov eax, dword [edi]
call fcn.0061fb8c
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0061fba0
fcomp qword [ebp - 0x24]
fnstsw ax
sahf
jae 0x547615
mov eax, dword [edi]
call fcn.006255d0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x5475dc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
dec eax
test eax, eax
jl 0x54765d
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x18]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [edx + ecx*4]
call fcn.004034e4
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.00652c30
inc dword [ebp - 0x2c]
dec dword [ebp - 0x34]
jne 0x547634
mov eax, ebx
call fcn.0047a394
cmp dword [ebp - 4], 0
je 0x5476e4
test esi, esi
je 0x54767a
lea eax, [ebp - 0x14]
mov edx, dword [esi]
call fcn.004038bc
jmp 0x547685
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.005684ec
test byte [ebp - 5], 0x10
je 0x547698
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.004038bc
jmp 0x5476ce
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
sub eax, 3
je 0x5476ab
sub eax, 2
jne 0x5476c3
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x160]
mov edx, 0x5479e4
call fcn.00658754
jmp 0x5476ce
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.005684ec
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x10]
call fcn.00658904
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x10]
call fcn.004038bc
xor esi, esi
jmp 0x54780b
mov edi, 1
jmp 0x5476f3
inc edi
lea eax, [edi + esi]
cmp eax, dword [ebx + 0x24]
jge 0x547713
lea eax, [edi + esi]
mov edx, dword [ebx + 0x18]
mov edx, dword [edx + eax*4]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + esi*4]
call fcn.006586a0
test al, al
jne 0x5476f2
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + esi*4]
mov edx, dword [ebp - 0x10]
call fcn.006586a0
mov byte [ebp - 0x2e], al
cmp byte [ebp - 0x2e], 0
je 0x54779e
test byte [ebp - 5], 1
jne 0x54779e
lea edx, [edi + esi]
dec edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x18]
mov eax, dword [edx + eax*4]
call fcn.0061fb8c
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0061fba0
fstp qword [ebp - 0x48]
wait
mov eax, dword [ebp - 0x14]
call fcn.0061fb8c
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0061fba0
fsub qword [ebp - 0x48]
mov eax, dword [0x671c60]
mov eax, dword [eax + 8]
mov edx, dword [0x672760]
imul eax, dword [edx + eax*4], 0x3c
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
fcompp
fnstsw ax
sahf
jbe 0x54779e
mov byte [ebp - 0x2d], 0
mov eax, dword [0x671c60]
cmp dword [eax + 4], 9
je 0x547817
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [0x671c60]
cmp dword [eax + 4], 9
jge 0x547806
mov al, byte [ebp - 0x2e]
xor al, 1
and eax, 0x7f
lea edx, [edi + esi]
sub edx, eax
mov eax, dword [0x671c60]
mov eax, dword [eax + 4]
mov ecx, dword [0x672330]
sub edx, dword [ecx + eax*4]
mov eax, esi
sub eax, edx
jg 0x547806
dec eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x2c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x18]
mov eax, dword [edx + eax*4]
call fcn.006255d0
mov edx, dword [ebp - 0x2c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x28]
dec dword [ebp - 0x2c]
inc dword [ebp - 0x34]
jne 0x5477d9
sub edi, dword [ebp - 0x28]
add esi, edi
mov eax, dword [ebx + 0x24]
dec eax
cmp esi, eax
jle 0x5476eb
mov eax, ebx
call fcn.004028c0
mov eax, dword [ebp - 0xc]
call fcn.004028c0
mov eax, dword [0x671ed8]
mov eax, dword [eax]
call fcn.006254c4
cmp byte [ebp - 0x2d], 0
je 0x547989
test byte [ebp - 5], 8
jne 0x547989
lea eax, [ebp - 0x18]
mov edx, dword [0x671ed8]
mov edx, dword [edx]
call fcn.004038bc
lea eax, [ebp - 0x18]
call fcn.00625074
mov eax, dword [0x671c60]
test byte [eax], 0x20
je 0x547886
mov eax, dword [0x671c60]
cmp dword [eax + 4], 0
jle 0x547886
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00403ac4
lea eax, [ebp - 0x18]
call fcn.00625074
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0047a160
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x18]
call fcn.00403ac4
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.006587e0
jmp 0x5478b4
lea eax, [ebp - 0x1c]
call fcn.0065721c
mov eax, dword [ebp - 0x1c]
call fcn.006571d8
cmp ax, 0x2e
je 0x5478ac
lea eax, [ebp - 0x1c]
call fcn.0065721c
push dword [ebp - 0x1c]
push 0x5479f4
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x10]
call fcn.00658934
push dword [ebp - 0x40]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00403b88
mov eax, dword [ebp - 0x18]
call fcn.00403ab8
cmp eax, 0x100
jge 0x547846
push 0
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x18]
call fcn.0065885c
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_CreateDirectoryW
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4b0]
mov edx, dword [ebp - 4]
mov dword [edx + 0x4bc], eax
call fcn.00659760
mov eax, dword [ebp - 4]
fstp qword [eax + 0x814]
wait
test byte [ebp - 5], 2
jne 0x547950
push 0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x547989
test byte [ebp - 5], 2
je 0x547969
push 3
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_MoveFileExW
test eax, eax
jne 0x547989
mov ax, word [0x5479fc]
push eax
mov eax, dword [0x6725f8]
mov eax, dword [eax]
mov cl, 1
mov edx, dword [ebp - 0x18]
call fcn.0062338c
cmp ax, 2
je 0x54798d
jmp 0x547937
mov byte [ebp - 6], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5479bf
lea eax, [ebp - 0x40]
call fcn.00403880
lea eax, [ebp - 0x3c]
call fcn.00403274
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00403898
ret