Function at 0x405af0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4388e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esi + 0x1108]
xor ebx, ebx
cmp ecx, eax
je 0x405b40
mov dword [esi + 0x10e4], 0x3f3
mov dword [esi + 0x10e8], ebx
mov dword [esi + 0x10ec], ebx
jmp 0x405e12
cmp dword [esi + 0x10f0], ebx
je 0x405e12
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1104], eax
mov dword [esi + 0x10f4], ebx
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], ebx
mov word [ecx], bx
mov edx, dword [esi + 0x14]
mov word [edx], bx
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
xor ecx, ecx
mov dword [esp + 0x10], eax
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
lea edi, [esi + 0x58]
push edx
mov ecx, edi
mov dword [esi + 0x4c], ebx
call fcn.00403020
push edi
call fcn.00403320
mov eax, dword [edi]
push 0x43c8b4
push eax
call fcn.00423216
add esp, 0xc
neg eax
sbb eax, eax
inc eax
push 0x12c
lea ecx, [esp + 0x24]
mov dword [esi + 0x10f8], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.00402f60
mov ecx, dword [esp + 0x20]
mov word [ecx], bx
push 0x12c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.00402f60
mov edx, dword [esp + 0x18]
mov word [edx], bx
mov edx, dword [ebp + 8]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x50], 1
call fcn.00403370
mov eax, dword [edi]
push eax
call fcn.004156c4
mov ecx, dword [edi + 4]
add esp, 0x10
cmp eax, ecx
jb 0x405c41
push 0x4456bc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], str.The_string_has_no_terminating_null_character_
call fcn.0041555f
cmp eax, 3
jb 0x405dde
lea ecx, [esp + 0x20]
call fcn.00402f30
cmp eax, 2
jb 0x405dde
lea ecx, [esp + 0x18]
call fcn.00402f30
cmp eax, 2
jb 0x405dde
lea edi, [esi + 0x60]
mov edx, dword [edi]
push 0x12c
lea ecx, [esp + 0x34]
mov word [edx], bx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.00402e60
mov eax, dword [esp + 0x30]
mov byte [eax], bl
push 0x12c
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 2
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00402e60
mov ecx, dword [esp + 0x28]
mov byte [ecx], bl
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x20]
push edx
push ebx
push 0x405860
push ebx
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 3
call fcn.00402ee0
mov ecx, dword [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x48]
call fcn.00402ee0
mov edx, dword [esi + 0x10f0]
push eax
push edx
call dword [esi + 0x1114]
add esp, 0x1c
test eax, eax
je 0x405d52
mov eax, dword [edi]
push eax
call fcn.004156c4
mov ecx, dword [edi + 4]
add esp, 4
cmp eax, ecx
jae 0x405d3b
cmp eax, ebx
je 0x405d52
push edi
lea ecx, [esp + 0x1c]
call fcn.00403020
mov ecx, dword [esp + 0x28]
push ecx
mov byte [esp + 0x48], 2
call fcn.004298fd
mov edx, dword [esp + 0x34]
push edx
mov byte [esp + 0x4c], 1
call fcn.004298fd
add esp, 8
jmp 0x405c71
push 0x4456bc
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], str.The_string_has_no_terminating_null_character_
call fcn.0041555f
mov eax, dword [esp + 0x28]
push eax
mov byte [esp + 0x48], 2
call fcn.004298fd
mov ecx, dword [esp + 0x34]
push ecx
mov byte [esp + 0x4c], 1
call fcn.004298fd
mov edx, dword [esi + 8]
add esp, 8
push edx
mov ecx, esi
call fcn.00404a20
cmp dword [esi + 0x10f4], ebx
je 0x405d95
cmp dword [esi + 8], ebx
je 0x405d95
mov esi, dword [esi + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x10]
call fcn.004037b0
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
push eax
inc esi
mov byte [esp + 0x48], bl
call fcn.004298fd
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x4c], 0xffffffff
call fcn.004298fd
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push edx
mov dword [eax + 0x18], 0x3ea
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
mov byte [esp + 0x48], bl
call fcn.004298fd
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x4c], 0xffffffff
call fcn.004298fd
add esp, 8
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc