Function at 0x47e190
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51fbe0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x569638]
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 0x47e546
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.0047f3c0
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 0x47e204
cmp edi, eax
je 0x47e209
call fcn.004f4962
cmp ebx, dword [esp + 0x48]
jne 0x47e23f
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 0x47e239
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
jmp 0x47e53e
test edi, edi
jne 0x47e298
call fcn.004f4962
cmp ebx, dword [edi + 0x18]
jne 0x47e252
call fcn.004f4962
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.0047e850
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 0x47e285
cmp ecx, edi
je 0x47e28a
call fcn.004f4962
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x40], eax
jne 0x47e29c
xor al, al
jmp 0x47e2a0
mov edi, dword [edi]
jmp 0x47e248
mov al, byte [esp + 0x17]
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
cmp dword [ecx - 0xc], 0
je 0x47e505
test al, al
je 0x47e4fb
lea esi, [esp + 0x1c]
call fcn.00456340
mov byte [esp + 0x68], 1
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x47e4e3
push ecx
mov edx, esp
mov dword [esp + 0x24], esp
push edx
mov edi, str.disable_resize
call fcn.00428100
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.00428100
mov byte [esp + 0x70], 3
mov ecx, esi
mov byte [esp + 0x70], 1
call fcn.00456160
mov dword [esp + 0x18], eax
test eax, eax
je 0x47e4e3
cmp dword [ebx + 0x14], 0
lea edi, [ebx + 0x14]
je 0x47e374
movzx edx, byte [ebx + 0x1c]
push edx
push ecx
mov eax, edi
mov esi, esp
mov dword [esp + 0x28], esp
call fcn.004652b0
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.0047dc10
mov ecx, dword [ebx + 0x18]
push 2
push ecx
push ecx
mov eax, edi
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.004652b0
mov edx, dword [esp + 0x24]
xor ecx, ecx
call fcn.0047b660
add esp, 0xc
jmp 0x47e4df
lea esi, [esp + 0x20]
call fcn.0042c080
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.0042b7f0
mov esi, dword [ebp + 8]
add esp, 0x10
mov edx, edi
push edx
lea eax, [esp + 0x38]
add esi, 0x28
push eax
call fcn.0047ee60
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.004d37f0
test al, al
je 0x47e4d6
mov esi, edi
call fcn.00454fa0
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.00454fa0
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], ecx
call fcn.00454fa0
mov edi, eax
add edi, 8
lea esi, [esp + 0x3c]
call fcn.004311d0
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.00454fa0
mov edi, eax
add edi, 8
lea esi, [esp + 0x2c]
call fcn.004311b0
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.004d37f0
test al, al
je 0x47e4d6
mov edi, edi
lea esi, [esp + 0x3c]
call fcn.0043f0f0
mov esi, dword [eax]
mov dword [esp + 0x2c], esi
test esi, esi
je 0x47e46b
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov byte [esp + 0x68], 5
test esi, esi
je 0x47e55d
mov eax, esi
call fcn.00480eb0
cmp eax, 1
jbe 0x47e4ab
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.0047b660
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.0047f450
lea esi, [esp + 0x44]
lea edi, [esp + 0x3c]
call fcn.004d37f0
test al, al
jne 0x47e450
lea ecx, [esp + 0x20]
call fcn.004062c0
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x68], 0
test esi, esi
je 0x47e4f4
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.0047f050
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 0x47e53d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.004f3984
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.004f3830
int3