Function at 0x4152b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462080
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x47e4f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ebx, ebx
cmp dword [esi + 0x1108], eax
je 0x415305
mov dword [esi + 0x10e4], 0x3f3
mov dword [esi + 0x10e8], ebx
mov dword [esi + 0x10ec], ebx
jmp 0x4155e5
cmp dword [esi + 0x10f0], ebx
je 0x4155e5
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
xor edx, edx
mov word [ecx], dx
mov eax, dword [esi + 0x14]
mov edx, dword [ebp + 0xc]
lea edi, [esi + 0x10cc]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
lea ecx, [esi + 0x58]
push edx
mov dword [ebp - 0x10], edi
mov dword [esi + 0x4c], ebx
call fcn.0040ff20
lea eax, [esi + 0x58]
push eax
call fcn.00410290
mov eax, dword [esi + 0x58]
push 0x469368
push eax
call fcn.00448bb3
add esp, 0xc
neg eax
sbb eax, eax
inc eax
push 0x12c
lea ecx, [ebp - 0x30]
mov dword [esi + 0x10f8], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.0040fe40
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov word [edx], cx
push 0x12c
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.0040fe40
mov ecx, dword [ebp - 0x28]
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x30]
push eax
push ecx
mov byte [ebp - 4], 1
call fcn.004102f0
add esp, 0xc
lea ecx, [esi + 0x58]
call fcn.0040fe00
cmp eax, 3
jb 0x4155c3
lea ecx, [ebp - 0x30]
call fcn.0040fe00
cmp eax, 2
jb 0x4155c3
lea ecx, [ebp - 0x28]
call fcn.0040fe00
cmp eax, 2
jb 0x4155c3
mov edx, dword [esi + 0x60]
lea edi, [esi + 0x60]
xor eax, eax
push 0x12c
lea ecx, [ebp - 0x20]
mov word [edx], ax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0040fd20
mov ecx, dword [ebp - 0x20]
mov byte [ecx], bl
push 0x12c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040fd20
mov edx, dword [ebp - 0x18]
mov byte [edx], bl
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x30]
push eax
push ebx
push 0x415050
push ebx
push ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0040fda0
mov edx, dword [ebp - 0x28]
push eax
push edx
lea ecx, [ebp - 0x20]
call fcn.0040fda0
mov ecx, dword [esi + 0x1114]
push eax
mov eax, dword [esi + 0x10f0]
push eax
call ecx
add esp, 0x1c
test eax, eax
je 0x41553f
mov ecx, edi
call fcn.0040fe00
test eax, eax
je 0x41554e
push edi
lea ecx, [ebp - 0x28]
call fcn.0040ff20
mov edx, dword [ebp - 0x18]
push edx
call fcn.004465a0
mov eax, dword [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
call fcn.004465a0
mov ecx, dword [edi]
xor edx, edx
add esp, 8
mov word [ecx], dx
push 0x12c
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0040fd20
mov eax, dword [ebp - 0x20]
mov byte [eax], bl
push 0x12c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040fd20
mov ecx, dword [ebp - 0x18]
mov byte [ecx], bl
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x30]
push edx
push ebx
push 0x415050
push ebx
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0040fda0
mov ecx, dword [ebp - 0x28]
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040fda0
mov edx, dword [esi + 0x10f0]
push eax
mov eax, dword [esi + 0x1114]
push edx
call eax
add esp, 0x1c
test eax, eax
jne 0x415490
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004465a0
mov edx, dword [ebp - 0x20]
push edx
jmp 0x41555b
mov eax, dword [ebp - 0x18]
push eax
call fcn.004465a0
mov ecx, dword [ebp - 0x20]
push ecx
mov byte [ebp - 4], 1
call fcn.004465a0
mov edx, dword [esi + 8]
add esp, 8
push edx
mov ecx, esi
call fcn.004146e0
cmp dword [esi + 0x10f4], ebx
je 0x415589
cmp dword [esi + 8], ebx
je 0x415589
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
call fcn.004106f0
mov ecx, dword [ebp - 0x28]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call fcn.004465a0
mov edx, dword [ebp - 0x30]
push edx
call fcn.004465a0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x28]
push eax
mov dword [edi + 0x18], 0x3ea
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
call fcn.004465a0
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004465a0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc