Function at 0x41f320
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x4b1810]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
mov esi, dword [0x4b714c]
lea ecx, [esp + 0x18]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 1
mov dword [esp + 0x18], ebx
push 0x414080
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.0041a730
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 0xc]
mov esi, dword [ecx]
lea eax, [esp + 0x1c]
push eax
call fcn.004197e0
cmp dword [eax], esi
setne al
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x13], al
jb 0x41f39e
push dword [esp + 0x1c]
call fcn.0048db5b
mov al, byte [esp + 0x17]
add esp, 4
mov esi, dword [esp + 0x14]
test al, al
jne 0x41f3ba
push 0x414078
mov ecx, esi
call fcn.00417f60
test al, al
je 0x41f513
cmp dword [0x4b7174], ebx
je 0x41f3cf
cmp byte [0x4b82e4], bl
jne 0x41f647
int3
mov eax, dword [0x4b715c]
push 0x10
mov dword [0x4b7174], eax
call fcn.0048dae5
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x41f465
push 7
push 0x414078
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.0041a730
push 1
push 0x414080
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.0041a730
push ecx
lea eax, [esp + 0x38]
mov ecx, esi
push eax
lea eax, [esp + 0x6c]
mov ebx, 0x1e
push eax
call fcn.00417ff0
push eax
lea eax, [esp + 0x24]
mov ecx, esi
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00417ff0
mov ecx, dword [esp + 0x1c]
push eax
call fcn.00430340
mov dword [0x4b715c], eax
jmp 0x41f46b
mov dword [0x4b715c], ebx
test bl, 0x10
je 0x41f49b
and ebx, 0xffffffef
cmp dword [esp + 0x60], 0x10
jb 0x41f486
push dword [esp + 0x4c]
call fcn.0048db5b
add esp, 4
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
test bl, 8
je 0x41f4cb
and ebx, 0xfffffff7
cmp dword [esp + 0x78], 0x10
jb 0x41f4b6
push dword [esp + 0x64]
call fcn.0048db5b
add esp, 4
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
test bl, 4
je 0x41f4fb
and ebx, 0xfffffffb
cmp dword [esp + 0x30], 0x10
jb 0x41f4e6
push dword [esp + 0x1c]
call fcn.0048db5b
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
test bl, 2
je 0x41f513
cmp dword [esp + 0x48], 0x10
jb 0x41f513
push dword [esp + 0x34]
call fcn.0048db5b
add esp, 4
mov eax, dword [edi]
mov dword [0x4b2980], eax
test al, 1
jne 0x41f532
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004918a1
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
call fcn.0041f0f0
cmp dword [0x4b716c], 0
jne 0x41f556
push 0xffffffffffffffff
push dword [0x4b7168]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x41f562
push dword [0x4b7180]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4b7160]
test eax, eax
je 0x41f57c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4b7160], 0
mov edx, dword [0x4b7154]
test edx, edx
jne 0x41f5b3
push 0x18
call fcn.0048dae5
mov edx, eax
add esp, 4
test edx, edx
je 0x41f5ab
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
jmp 0x41f5ad
xor edx, edx
mov dword [0x4b7154], edx
mov esi, dword [edi + 4]
cmp word [esi], 0
jne 0x41f5c0
xor ecx, ecx
jmp 0x41f5d4
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f5c5
sub ecx, ebx
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.0041aa00
cmp dword [edi + 0xc], 0
jne 0x41f5f7
mov eax, dword [0x4b7154]
cmp dword [eax + 0x14], 8
jb 0x41f5f0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0041f240
cmp dword [0x4b716c], 0
mov bl, al
jne 0x41f627
push dword [0x4b7168]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004918a1
mov esp, ebp
pop ebp
ret
push dword [0x4b7180]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x7c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004918a1
mov esp, ebp
pop ebp
ret
push 1
call fcn.0048f00d
int3