Function at 0x4808a0
Capabilities:
Copy file
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x634110
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x6ce488]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push ecx
lea ecx, [ebp - 0x14]
call fcn.004178d0
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.004178d0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
mov esi, dword [eax - 0xc]
cmp esi, 1
jg 0x480903
add eax, 0xfffffff0
push eax
call fcn.00401b80
add esp, 4
add eax, 0x10
jmp 0x480937
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x480913
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x48091f
call fcn.004021b0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push 1
lea eax, [eax + esi*2]
add eax, 0xfffffffe
push eax
call fcn.00416690
mov eax, dword [ebp - 0x10]
mov edx, 0x6a2f8c
mov ecx, eax
nop
mov si, word [ecx]
cmp si, word [edx]
jne 0x480966
test si, si
je 0x480962
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x480966
add ecx, 4
add edx, 4
test si, si
jne 0x480940
xor esi, esi
jmp 0x48096b
sbb esi, esi
or esi, 1
or ebx, 0xffffffff
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x480985
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x480998
push 1
push 0x6a2f8c
lea ecx, [ebp - 0x14]
call fcn.00417970
mov eax, dword [ebp - 0x18]
mov esi, dword [eax - 0xc]
cmp esi, 1
jg 0x4809b4
add eax, 0xfffffff0
push eax
call fcn.00401b80
add esp, 4
add eax, 0x10
jmp 0x4809e8
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x4809c4
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x4809d0
call fcn.004021b0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push 1
lea eax, [eax + esi*2]
add eax, 0xfffffffe
push eax
call fcn.00416690
mov eax, dword [ebp - 0x10]
mov edx, 0x6a2f8c
mov ecx, eax
nop
mov si, word [ecx]
cmp si, word [edx]
jne 0x480a16
test si, si
je 0x480a12
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x480a16
add ecx, 4
add edx, 4
test si, si
jne 0x4809f0
xor esi, esi
jmp 0x480a1b
sbb esi, esi
or esi, 1
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x480a32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x480a45
push 1
push 0x6a2f8c
lea ecx, [ebp - 0x18]
call fcn.00417970
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.00412b60
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
call fcn.00480440
xor edi, edi
mov dword [ebp - 0x24], 0
xor ecx, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x480baa
nop
cmp dword [eax + 0x14], 0
lea ebx, [eax + 0x10]
je 0x480ad3
cmp ecx, edi
je 0x480ac1
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.00401b80
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov edi, dword [ebp - 0x20]
add edi, 4
or ebx, 0xffffffff
mov dword [ebp - 0x20], edi
jmp 0x480b93
push ebx
push edi
lea ecx, [ebp - 0x24]
call fcn.00486d60
or ebx, 0xffffffff
jmp 0x480b90
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
call fcn.004165d0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x38]
call fcn.00411e10
add esp, 4
mov byte [ebp - 4], 5
mov ecx, dword [eax]
call fcn.0047fcf0
mov byte [ebp - 4], 4
or edi, 0xffffffff
mov edx, dword [ebp - 0x38]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x480b2f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x34]
call fcn.00411e10
add esp, 4
push 0
push dword [eax]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x34]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x480b67
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 3
or ebx, 0xffffffff
mov edx, dword [ebp - 0x30]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x480b90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
call fcn.004123c0
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x480baa
mov ecx, dword [ebp - 0x1c]
jmp 0x480a90
mov ecx, dword [ebp - 0x24]
mov eax, edi
sub eax, ecx
mov edx, edi
sar eax, 2
push 0x480810
push eax
call fcn.0048ac20
mov esi, dword [ebp - 0x24]
add esp, 8
mov edi, dword [ebp - 0x20]
cmp esi, edi
je 0x480c5c
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.004165d0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x34]
call fcn.00411e10
add esp, 4
mov byte [ebp - 4], 7
mov ecx, dword [eax]
call fcn.0047fa40
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x480c2b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x480c51
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x480bd2
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 2
mov edi, eax
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x480ccd
mov edx, dword [ebp - 0x20]
push ecx
call fcn.00487410
mov eax, dword [ebp - 0x1c]
add esp, 4
mov ecx, dword [ebp - 0x24]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x480cae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480d55
push edx
push ecx
call fcn.005c385c
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x2c]
push dword [esi + 4]
call fcn.00486bd0
mov eax, dword [ebp - 0x2c]
push 0x18
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x2c]
mov dword [eax], esi
mov eax, dword [ebp - 0x2c]
mov dword [eax + 8], esi
push dword [ebp - 0x2c]
mov dword [ebp - 0x28], 0
call fcn.005c385c
mov byte [ebp - 4], 0
add esp, 8
mov edx, dword [ebp - 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x480d22
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x480d41
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00606fc9
int3