Function at 0x53e9fc
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 0x53eec6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6694bc]
cmp byte [eax], 0
jne 0x53ee97
mov eax, dword [0x669208]
test byte [eax], 0x10
jne 0x53ea5d
mov al, byte [0x53eed8]
and al, byte [ebp - 5]
mov dl, byte [0x53eedc]
cmp dl, al
je 0x53ee97
mov byte [ebp - 6], 0
test byte [ebp - 5], 8
jne 0x53ea76
push 0
mov eax, dword [0x669304]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CreateDirectoryW
mov byte [ebp - 0x2d], 1
call fcn.0064d744
mov dword [ebp - 0xc], eax
call fcn.0064d744
mov ebx, eax
push 0
mov eax, dword [0x669304]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov edx, 0x53eee4
call fcn.00621c48
mov eax, dword [0x669208]
test byte [eax + 1], 0x40
je 0x53eb2e
call fcn.006557f0
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0061c1e8
mov eax, dword [0x669208]
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 0x53eb2e
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.0061c1d4
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0061c1e8
fcomp qword [ebp - 0x24]
fnstsw ax
sahf
jae 0x53eb25
mov eax, dword [edi]
call fcn.00621d70
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 0x53eaec
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
dec eax
test eax, eax
jl 0x53eb6d
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.0064ed44
inc dword [ebp - 0x2c]
dec dword [ebp - 0x34]
jne 0x53eb44
mov eax, ebx
call fcn.00465690
cmp dword [ebp - 4], 0
je 0x53ebf4
test esi, esi
je 0x53eb8a
lea eax, [ebp - 0x14]
mov edx, dword [esi]
call fcn.004038bc
jmp 0x53eb95
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0055fc94
test byte [ebp - 5], 0x10
je 0x53eba8
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.004038bc
jmp 0x53ebde
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
sub eax, 3
je 0x53ebbb
sub eax, 2
jne 0x53ebd3
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x160]
mov edx, 0x53eef0
call fcn.006547e4
jmp 0x53ebde
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0055fc94
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x10]
call fcn.00654994
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x10]
call fcn.004038bc
xor esi, esi
jmp 0x53ed1b
mov edi, 1
jmp 0x53ec03
inc edi
lea eax, [edi + esi]
cmp eax, dword [ebx + 0x24]
jge 0x53ec23
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.00654730
test al, al
jne 0x53ec02
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + esi*4]
mov edx, dword [ebp - 0x10]
call fcn.00654730
mov byte [ebp - 0x2e], al
cmp byte [ebp - 0x2e], 0
je 0x53ecae
test byte [ebp - 5], 1
jne 0x53ecae
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.0061c1d4
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0061c1e8
fstp qword [ebp - 0x48]
wait
mov eax, dword [ebp - 0x14]
call fcn.0061c1d4
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0061c1e8
fsub qword [ebp - 0x48]
mov eax, dword [0x669208]
mov eax, dword [eax + 8]
mov edx, dword [0x669694]
imul eax, dword [edx + eax*4], 0x3c
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
fcompp
fnstsw ax
sahf
jbe 0x53ecae
mov byte [ebp - 0x2d], 0
mov eax, dword [0x669208]
cmp dword [eax + 4], 9
je 0x53ed27
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [0x669208]
cmp dword [eax + 4], 9
jge 0x53ed16
mov al, byte [ebp - 0x2e]
xor al, 1
and eax, 0x7f
lea edx, [edi + esi]
sub edx, eax
mov eax, dword [0x669208]
mov eax, dword [eax + 4]
mov ecx, dword [0x6694d4]
sub edx, dword [ecx + eax*4]
mov eax, esi
sub eax, edx
jg 0x53ed16
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.00621d70
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 0x53ece9
sub edi, dword [ebp - 0x28]
add esi, edi
mov eax, dword [ebx + 0x24]
dec eax
cmp esi, eax
jle 0x53ebfb
mov eax, ebx
call fcn.004028c0
mov eax, dword [ebp - 0xc]
call fcn.004028c0
mov eax, dword [0x669304]
mov eax, dword [eax]
call fcn.00621c64
cmp byte [ebp - 0x2d], 0
je 0x53ee97
test byte [ebp - 5], 8
jne 0x53ee97
lea eax, [ebp - 0x18]
mov edx, dword [0x669304]
mov edx, dword [edx]
call fcn.004038bc
lea eax, [ebp - 0x18]
call fcn.00621814
mov eax, dword [0x669208]
test byte [eax], 0x20
je 0x53ed96
mov eax, dword [0x669208]
cmp dword [eax + 4], 0
jle 0x53ed96
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00403ac4
lea eax, [ebp - 0x18]
call fcn.00621814
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0046545c
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x18]
call fcn.00403ac4
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.00654870
jmp 0x53edc4
lea eax, [ebp - 0x1c]
call fcn.00653300
mov eax, dword [ebp - 0x1c]
call fcn.006532bc
cmp ax, 0x2e
je 0x53edbc
lea eax, [ebp - 0x1c]
call fcn.00653300
push dword [ebp - 0x1c]
push 0x53ef00
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x10]
call fcn.006549c4
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 0x53ed56
push 0
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x18]
call fcn.006548ec
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.006557f0
mov eax, dword [ebp - 4]
fstp qword [eax + 0x814]
wait
test byte [ebp - 5], 2
jne 0x53ee60
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 0x53ee97
test byte [ebp - 5], 2
je 0x53ee79
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 0x53ee97
mov ax, word [0x53ef08]
push eax
mov eax, 0x53ef0c
mov cl, 1
mov edx, dword [ebp - 0x18]
call fcn.0061f824
cmp ax, 2
je 0x53ee9b
jmp 0x53ee47
mov byte [ebp - 6], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53eecd
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