Function at 0x4a8cd0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56d490
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x5c5678]
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 0x4a9086
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.004a9d90
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 0x4a8d44
cmp edi, eax
je 0x4a8d49
call fcn.0053ecd6
cmp ebx, dword [esp + 0x48]
jne 0x4a8d7f
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 0x4a8d79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
jmp 0x4a907e
test edi, edi
jne 0x4a8dd8
call fcn.0053ecd6
cmp ebx, dword [edi + 0x18]
jne 0x4a8d92
call fcn.0053ecd6
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.004b1310
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 0x4a8dc5
cmp ecx, edi
je 0x4a8dca
call fcn.0053ecd6
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x40], eax
jne 0x4a8ddc
xor al, al
jmp 0x4a8de0
mov edi, dword [edi]
jmp 0x4a8d88
mov al, byte [esp + 0x17]
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
cmp dword [ecx - 0xc], 0
je 0x4a9045
test al, al
je 0x4a903b
lea esi, [esp + 0x1c]
call fcn.00478360
mov byte [esp + 0x68], 1
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4a9023
push ecx
mov edx, esp
mov dword [esp + 0x24], esp
push edx
mov edi, str.disable_resize
call fcn.00422950
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.00422950
mov byte [esp + 0x70], 3
mov ecx, esi
mov byte [esp + 0x70], 1
call fcn.00478260
mov dword [esp + 0x18], eax
test eax, eax
je 0x4a9023
cmp dword [ebx + 0x14], 0
lea edi, [ebx + 0x14]
je 0x4a8eb4
movzx edx, byte [ebx + 0x1c]
push edx
push ecx
mov eax, edi
mov esi, esp
mov dword [esp + 0x28], esp
call fcn.0048ac70
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.004a8750
mov ecx, dword [ebx + 0x18]
push 2
push ecx
push ecx
mov eax, edi
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.0048ac70
mov edx, dword [esp + 0x24]
xor ecx, ecx
call fcn.004a6180
add esp, 0xc
jmp 0x4a901f
lea esi, [esp + 0x20]
call fcn.004dfc50
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.00424dc0
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.004a9800
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.004a9f70
test al, al
je 0x4a9016
mov esi, edi
call fcn.0048ad30
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.0048ad30
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], ecx
call fcn.0048ad30
mov edi, eax
add edi, 8
lea esi, [esp + 0x3c]
call fcn.004a9290
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.0048ad30
mov edi, eax
add edi, 8
lea esi, [esp + 0x2c]
call fcn.004c8b40
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.004a9f70
test al, al
je 0x4a9016
nop
lea esi, [esp + 0x3c]
call fcn.00464e10
mov esi, dword [eax]
mov dword [esp + 0x2c], esi
test esi, esi
je 0x4a8fab
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov byte [esp + 0x68], 5
test esi, esi
je 0x4a909d
mov eax, esi
call fcn.004ab950
cmp eax, 1
jbe 0x4a8feb
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.004a6180
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.004a9f90
lea esi, [esp + 0x44]
lea edi, [esp + 0x3c]
call fcn.004a9f70
test al, al
jne 0x4a8f90
lea ecx, [esp + 0x20]
call fcn.00425530
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x68], 0
test esi, esi
je 0x4a9034
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.004a9a20
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 0x4a907d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.0053d782
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.0053d640
int3