Function at 0x47acb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a1967
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x4e24e0]
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 0x47b066
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.00421480
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 0x47ad24
cmp edi, eax
je 0x47ad29
call fcn.00446707
cmp ebx, dword [esp + 0x48]
jne 0x47ad5f
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 0x47ad59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
jmp 0x47b05e
test edi, edi
jne 0x47adb8
call fcn.00446707
cmp ebx, dword [edi + 0x18]
jne 0x47ad72
call fcn.00446707
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.004233e0
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 0x47ada5
cmp ecx, edi
je 0x47adaa
call fcn.00446707
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x40], eax
jne 0x47adbc
xor al, al
jmp 0x47adc0
mov edi, dword [edi]
jmp 0x47ad68
mov al, byte [esp + 0x17]
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
cmp dword [ecx - 0xc], 0
je 0x47b025
test al, al
je 0x47b01b
lea esi, [esp + 0x1c]
call fcn.00415b80
mov byte [esp + 0x68], 1
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x47b003
push ecx
mov edx, esp
mov dword [esp + 0x24], esp
push edx
mov edi, str.disable_resize
call fcn.0040e870
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.0040e870
mov byte [esp + 0x70], 3
mov ecx, esi
mov byte [esp + 0x70], 1
call fcn.004159a0
mov dword [esp + 0x18], eax
test eax, eax
je 0x47b003
cmp dword [ebx + 0x14], 0
lea edi, [ebx + 0x14]
je 0x47ae94
movzx edx, byte [ebx + 0x1c]
push edx
push ecx
mov eax, edi
mov esi, esp
mov dword [esp + 0x28], esp
call fcn.00418680
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.0047aac0
mov ecx, dword [ebx + 0x18]
push 2
push ecx
push ecx
mov eax, edi
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.00418680
mov edx, dword [esp + 0x24]
xor ecx, ecx
call fcn.0047a200
add esp, 0xc
jmp 0x47afff
lea esi, [esp + 0x20]
call fcn.00411660
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.00410c60
mov esi, dword [ebp + 8]
add esp, 0x10
mov edx, edi
push edx
lea eax, [esp + 0x38]
add esi, 0x28
push eax
call fcn.00420f50
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.00421710
test al, al
je 0x47aff6
mov esi, edi
call fcn.0041d790
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.0041d790
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], ecx
call fcn.0041d790
mov edi, eax
add edi, 8
lea esi, [esp + 0x3c]
call fcn.00420a90
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.0041d790
mov edi, eax
add edi, 8
lea esi, [esp + 0x2c]
call fcn.00420a70
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.00421710
test al, al
je 0x47aff6
mov edi, edi
lea esi, [esp + 0x3c]
call fcn.004216b0
mov esi, dword [eax]
mov dword [esp + 0x2c], esi
test esi, esi
je 0x47af8b
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov byte [esp + 0x68], 5
test esi, esi
je 0x47b07d
mov eax, esi
call fcn.00422cc0
cmp eax, 1
jbe 0x47afcb
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.0047a200
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.004216e0
lea esi, [esp + 0x44]
lea edi, [esp + 0x3c]
call fcn.00421710
test al, al
jne 0x47af70
lea ecx, [esp + 0x20]
call fcn.00402430
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x68], 0
test esi, esi
je 0x47b014
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.00421110
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 0x47b05d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.0044556f
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.00441d80
int3