Function at 0x47da38
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404e28
xor eax, eax
push ebp
push 0x47dc8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.00404c40
test eax, eax
je 0x47dc5f
mov ebx, dword [esi + 0x10]
test ebx, ebx
jl 0x47dc5f
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp ebx, eax
jg 0x47dc5f
lea ecx, [ebp - 0x24]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x24]
call fcn.00404c40
test eax, eax
je 0x47dc5f
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
je 0x47dc5f
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404c40
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x47dafa
lea eax, [ebp - 4]
mov edx, 0x47dca8
call fcn.00404c48
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 8]
dec eax
test eax, eax
jl 0x47dc55
inc eax
mov dword [ebp - 0x20], eax
xor ebx, ebx
mov edx, ebx
mov eax, edi
call fcn.0041d1a8
test eax, eax
je 0x47dc4b
mov edx, ebx
mov eax, edi
call fcn.0041d1a8
mov dword [ebp - 0xc], eax
mov edx, ebx
mov eax, edi
call fcn.0041d1a8
mov eax, dword [eax + 0x2f]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x13]
call fcn.00409db8
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00408f94
mov eax, dword [ebp - 0x28]
mov edx, 0x47dcb4
call fcn.00404d84
jne 0x47dc4b
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x13]
lea eax, [ebp - 0x14]
mov edx, dword [esi + 0x14]
call fcn.00404c8c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x13]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00404c8c
mov eax, dword [ebp - 0x14]
call fcn.0040990c
test al, al
je 0x47dc4b
push 0xb
mov eax, dword [ebp - 0x18]
call fcn.00404e38
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404e38
push eax
call sub.kernel32.dll_MoveFileExA
cmp eax, 1
sbb eax, eax
neg eax
test al, al
jne 0x47dc4b
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x13]
lea eax, [ebp - 0x14]
mov edx, dword [esi + 0x14]
call fcn.00404c8c
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x13]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00404c8c
push 0xb
mov eax, dword [ebp - 0x18]
call fcn.00404e38
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404e38
push eax
call sub.kernel32.dll_MoveFileExA
cmp eax, 1
sbb eax, eax
neg eax
test al, al
je 0x47dc48
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x13]
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00404c8c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x13]
lea eax, [ebp - 0x18]
mov edx, dword [esi + 0x14]
call fcn.00404c8c
push 2
mov eax, dword [ebp - 0x18]
call fcn.00404e38
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404e38
push eax
call sub.kernel32.dll_MoveFileExA
test eax, eax
jmp 0x47dc4b
inc dword [ebp - 0x1c]
inc ebx
dec dword [ebp - 0x20]
jne 0x47db11
cmp dword [ebp - 0x1c], 0
jle 0x47dc5f
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47dc96
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.004049ac
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004049ac
lea eax, [ebp - 4]
call fcn.00404988
ret