Function at 0x4152f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4645f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4814f0]
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 0x415345
mov dword [esi + 0x10e4], 0x3f3
mov dword [esi + 0x10e8], ebx
mov dword [esi + 0x10ec], ebx
jmp 0x415625
cmp dword [esi + 0x10f0], ebx
je 0x415625
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.0040ff50
lea eax, [esi + 0x58]
push eax
call fcn.004102c0
mov eax, dword [esi + 0x58]
push 0x46c3b0
push eax
call fcn.0044b14d
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.0040fe70
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.0040fe70
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.00410320
add esp, 0xc
lea ecx, [esi + 0x58]
call fcn.0040fe30
cmp eax, 3
jb 0x415603
lea ecx, [ebp - 0x30]
call fcn.0040fe30
cmp eax, 2
jb 0x415603
lea ecx, [ebp - 0x28]
call fcn.0040fe30
cmp eax, 2
jb 0x415603
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.0040fd50
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.0040fd50
mov edx, dword [ebp - 0x18]
mov byte [edx], bl
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x30]
push eax
push ebx
push 0x415090
push ebx
push ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0040fdd0
mov edx, dword [ebp - 0x28]
push eax
push edx
lea ecx, [ebp - 0x20]
call fcn.0040fdd0
mov ecx, dword [esi + 0x1114]
push eax
mov eax, dword [esi + 0x10f0]
push eax
call ecx
add esp, 0x1c
test eax, eax
je 0x41557f
mov ecx, edi
call fcn.0040fe30
test eax, eax
je 0x41558e
push edi
lea ecx, [ebp - 0x28]
call fcn.0040ff50
mov edx, dword [ebp - 0x18]
push edx
call fcn.00448a60
mov eax, dword [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
call fcn.00448a60
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.0040fd50
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.0040fd50
mov ecx, dword [ebp - 0x18]
mov byte [ecx], bl
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x30]
push edx
push ebx
push 0x415090
push ebx
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0040fdd0
mov ecx, dword [ebp - 0x28]
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040fdd0
mov edx, dword [esi + 0x10f0]
push eax
mov eax, dword [esi + 0x1114]
push edx
call eax
add esp, 0x1c
test eax, eax
jne 0x4154d0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00448a60
mov edx, dword [ebp - 0x20]
push edx
jmp 0x41559b
mov eax, dword [ebp - 0x18]
push eax
call fcn.00448a60
mov ecx, dword [ebp - 0x20]
push ecx
mov byte [ebp - 4], 1
call fcn.00448a60
mov edx, dword [esi + 8]
add esp, 8
push edx
mov ecx, esi
call fcn.00414720
cmp dword [esi + 0x10f4], ebx
je 0x4155c9
cmp dword [esi + 8], ebx
je 0x4155c9
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
call fcn.00410720
mov ecx, dword [ebp - 0x28]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call fcn.00448a60
mov edx, dword [ebp - 0x30]
push edx
call fcn.00448a60
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.00448a60
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00448a60
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