Function at 0x45f9ac
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51ca19
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x577698]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
and dword [esp + 0x58], 0
test eax, eax
je 0x45fd0a
mov edi, dword [ebp + 8]
push eax
lea eax, [esp + 0x48]
lea esi, [edi + 0x48]
push eax
mov dword [esp + 0x28], esi
call fcn.00460521
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [esi + 0x18]
mov esi, dword [esi]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], eax
test ecx, ecx
je 0x45fa1f
cmp ecx, esi
je 0x45fa24
call fcn.004e8466
cmp ebx, dword [esp + 0x48]
jne 0x45fa32
mov esi, dword [ebp + 0xc]
jmp 0x45fcf8
lea esi, [esp + 0x3c]
call fcn.0046059e
push dword [ebp + 0xc]
mov ebx, eax
lea eax, [esp + 0x48]
push eax
lea esi, [edi + 0x6c]
push esi
add ebx, 4
mov byte [esp + 0x1f], 1
call fcn.0044052a
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x38], eax
mov eax, dword [esi]
lea edi, [esp + 0x34]
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
call fcn.0049da45
test al, al
je 0x45fa86
mov byte [esp + 0x13], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], 0
je 0x45fce2
cmp byte [esp + 0x13], 0
je 0x45fcd9
lea esi, [esp + 0x18]
call fcn.004388ab
mov byte [esp + 0x58], 1
mov esi, dword [esp + 0x18]
test esi, esi
je 0x45fcc7
push ecx
mov edi, esp
mov dword [esp + 0x20], esp
push str.disable_resize
call fcn.0042256f
mov eax, dword [ebp + 0xc]
push ecx
mov byte [esp + 0x60], 2
mov eax, dword [eax + 4]
mov edi, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.0042256f
mov byte [esp + 0x60], 3
mov edx, esi
mov byte [esp + 0x60], 1
call fcn.0043866a
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x45fcc7
mov eax, dword [ebx + 4]
test eax, eax
je 0x45fb5b
movzx ecx, byte [ebx + 0xc]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
mov dword [ecx], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
push dword [ebx + 8]
mov eax, dword [ebx + 0x10]
push eax
push dword [ebx]
push edi
push dword [ebp + 8]
call fcn.0045f7fe
push 0
push 2
push dword [ebx + 8]
mov ebx, dword [ebx + 4]
push edi
push ecx
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], ebx
test ebx, ebx
je 0x45fb4e
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
call fcn.0045eedc
add esp, 0x14
jmp 0x45fcc7
mov eax, dword [0x582d44]
mov ecx, 0x582d44
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x58], 4
push dword [ebx + 8]
lea eax, [esp + 0x18]
push dword [ebx + 0x10]
push dword [ebx]
push 0x541b98
push eax
call fcn.00404568
mov edi, dword [ebp + 8]
add esp, 0x14
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x30]
add edi, 0x28
push eax
call fcn.004601ba
cmp dword [esp + 0x2c], 0
mov esi, dword [edi + 0x18]
mov edi, dword [edi]
je 0x45fbb5
cmp dword [esp + 0x2c], edi
je 0x45fbba
call fcn.004e8466
cmp dword [esp + 0x30], esi
je 0x45fcb7
lea esi, [esp + 0x2c]
call fcn.0046059e
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x24]
call fcn.0046059e
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
call fcn.0046059e
push dword [eax + 0x18]
add eax, 8
mov edi, eax
lea esi, [esp + 0x48]
call fcn.0045e744
lea esi, [esp + 0x2c]
call fcn.0046059e
push dword [eax + 0x14]
add eax, 8
mov edi, eax
lea esi, [esp + 0x30]
call fcn.0045e744
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
test eax, eax
je 0x45fc31
cmp eax, dword [esp + 0x44]
je 0x45fc36
call fcn.004e8466
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x48]
je 0x45fcb7
lea esi, [esp + 0x34]
call fcn.004555bb
mov esi, dword [eax]
mov dword [esp + 0x28], esi
test esi, esi
je 0x45fc59
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov byte [esp + 0x58], 5
test esi, esi
je 0x45fcad
mov eax, esi
call fcn.004610d9
cmp eax, 1
jbe 0x45fc90
push 0
push 1
push dword [ebx + 8]
push dword [esp + 0x28]
push ecx
mov eax, esp
mov dword [esp + 0x40], esp
mov dword [eax], esi
mov eax, dword [esi]
push esi
call dword [eax + 4]
call fcn.0045eedc
add esp, 0x14
mov byte [esp + 0x58], 4
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea esi, [esp + 0x34]
call fcn.00417943
mov eax, dword [esp + 0x34]
jmp 0x45fc27
push 0x80004003
call fcn.004e7230
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.0040557a
mov esi, dword [esp + 0x18]
mov byte [esp + 0x58], 0
test esi, esi
je 0x45fcd6
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov esi, dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x40]
lea eax, [esp + 0x48]
push dword [esp + 0x40]
push eax
push dword [esp + 0x2c]
call fcn.00460286
mov eax, dword [esi + 4]
sub eax, 0x10
call fcn.0040557a
push esi
call fcn.004e7360
pop ecx
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8