Function at 0x4a7cb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56bc20
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x68], 0
test eax, eax
je 0x4a8066
mov esi, dword [ebp + 8]
push eax
add esi, 0x48
lea eax, [esp + 0x58]
push eax
mov edi, esi
mov dword [esp + 0x2c], esi
call fcn.004a8d20
mov edi, dword [eax]
mov ecx, dword [esi + 0x18]
mov ebx, dword [eax + 4]
mov eax, dword [esi]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ecx
test edi, edi
je 0x4a7d24
cmp edi, eax
je 0x4a7d29
call fcn.0053d6a6
cmp ebx, dword [esp + 0x48]
jne 0x4a7d5f
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x68], 0xffffffff
mov eax, dword [esi + 4]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a7d59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
jmp 0x4a805e
test edi, edi
jne 0x4a7db8
call fcn.0053d6a6
cmp ebx, dword [edi + 0x18]
jne 0x4a7d72
call fcn.0053d6a6
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push ecx
lea edx, [esp + 0x48]
add edi, 0x6c
push edx
mov byte [esp + 0x1f], 1
call fcn.004b0590
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [edi + 0x18]
mov edi, dword [edi]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], edx
test ecx, ecx
je 0x4a7da5
cmp ecx, edi
je 0x4a7daa
call fcn.0053d6a6
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x40], eax
jne 0x4a7dbc
xor al, al
jmp 0x4a7dc0
mov edi, dword [edi]
jmp 0x4a7d68
mov al, byte [esp + 0x17]
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
cmp dword [ecx - 0xc], 0
je 0x4a8025
test al, al
je 0x4a801b
lea esi, [esp + 0x1c]
call fcn.00476bf0
mov byte [esp + 0x68], 1
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4a8003
push ecx
mov edx, esp
mov dword [esp + 0x24], esp
push edx
mov edi, str.disable_resize
call fcn.00421180
mov eax, dword [ebp + 0xc]
push ecx
mov byte [esp + 0x70], 2
mov edi, dword [eax + 4]
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
call fcn.00421180
mov byte [esp + 0x70], 3
mov ecx, esi
mov byte [esp + 0x70], 1
call fcn.00476af0
mov dword [esp + 0x18], eax
test eax, eax
je 0x4a8003
cmp dword [ebx + 0x14], 0
lea edi, [ebx + 0x14]
je 0x4a7e94
movzx edx, byte [ebx + 0x1c]
push edx
push ecx
mov eax, edi
mov esi, esp
mov dword [esp + 0x28], esp
call fcn.00489c20
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebx + 0x20]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebx + 0x18]
push eax
call fcn.004a7730
mov ecx, dword [ebx + 0x18]
push 2
push ecx
push ecx
mov eax, edi
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.00489c20
mov edx, dword [esp + 0x24]
xor ecx, ecx
call fcn.004a5310
add esp, 0xc
jmp 0x4a7fff
lea esi, [esp + 0x20]
call fcn.0040e410
mov byte [esp + 0x68], 4
mov edx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x10]
push edx
push eax
push ecx
push str._p_s_u
mov edi, esi
call fcn.004235e0
mov esi, dword [ebp + 8]
add esp, 0x10
mov edx, edi
push edx
lea eax, [esp + 0x38]
push eax
add esi, 0x28
push esi
call fcn.004a87c0
mov ecx, dword [esi + 0x18]
mov edx, dword [esi]
lea esi, [esp + 0x44]
lea edi, [esp + 0x34]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], edx
call fcn.004a8f80
test al, al
je 0x4a7ff6
mov esi, edi
call fcn.004a8f50
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x24]
push ecx
call eax
call fcn.004a8f50
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], ecx
call fcn.004a8f50
mov edi, eax
add edi, 8
lea esi, [esp + 0x3c]
call fcn.00459840
mov edx, dword [eax]
mov eax, dword [eax + 4]
lea esi, [esp + 0x34]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call fcn.004a8f50
mov edi, eax
add edi, 8
lea esi, [esp + 0x2c]
call fcn.00426420
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea esi, [esp + 0x44]
lea edi, [esp + 0x3c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
call fcn.004a8f80
test al, al
je 0x4a7ff6
nop
lea esi, [esp + 0x3c]
call fcn.00472080
mov esi, dword [eax]
mov dword [esp + 0x2c], esi
test esi, esi
je 0x4a7f8b
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov byte [esp + 0x68], 5
test esi, esi
je 0x4a807d
mov eax, esi
call fcn.004aac70
cmp eax, 1
jbe 0x4a7fcb
mov edx, dword [ebx + 0x18]
push 1
push edx
push ecx
mov eax, esp
mov dword [eax], esi
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [esp + 0x40], esp
push esi
xor edi, edi
call ecx
mov edx, dword [esp + 0x24]
mov ecx, edi
call fcn.004a5310
add esp, 0xc
mov byte [esp + 0x68], 4
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
lea esi, [esp + 0x3c]
call fcn.004a8fa0
lea esi, [esp + 0x44]
lea edi, [esp + 0x3c]
call fcn.004a8f80
test al, al
jne 0x4a7f70
lea ecx, [esp + 0x20]
call fcn.00423d60
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x68], 0
test esi, esi
je 0x4a8014
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov edi, dword [ebp + 0xc]
mov esi, dword [esp + 0x24]
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x4c]
push ebx
push eax
lea ecx, [esp + 0x5c]
push ecx
push esi
call fcn.004a89b0
mov dword [esp + 0x68], 0xffffffff
mov eax, dword [edi + 4]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a805d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.0053c152
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004003
call fcn.0053c010
int3