Function at 0x41f1d0
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 0x413f2c
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.0041a5e0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 0xc]
mov esi, dword [ecx]
lea eax, [esp + 0x1c]
push eax
call fcn.00419690
cmp dword [eax], esi
setne al
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x13], al
jb 0x41f24e
push dword [esp + 0x1c]
call fcn.0048d7cb
mov al, byte [esp + 0x17]
add esp, 4
mov esi, dword [esp + 0x14]
test al, al
jne 0x41f26a
push 0x413f24
mov ecx, esi
call fcn.00417e10
test al, al
je 0x41f3c3
cmp dword [0x4b7174], ebx
je 0x41f27f
cmp byte [0x4b82e4], bl
jne 0x41f4f7
int3
mov eax, dword [0x4b715c]
push 0x10
mov dword [0x4b7174], eax
call fcn.0048d755
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x41f315
push 7
push 0x413f24
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.0041a5e0
push 1
push 0x413f2c
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.0041a5e0
push ecx
lea eax, [esp + 0x38]
mov ecx, esi
push eax
lea eax, [esp + 0x6c]
mov ebx, 0x1e
push eax
call fcn.00417ea0
push eax
lea eax, [esp + 0x24]
mov ecx, esi
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00417ea0
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0042fec0
mov dword [0x4b715c], eax
jmp 0x41f31b
mov dword [0x4b715c], ebx
test bl, 0x10
je 0x41f34b
and ebx, 0xffffffef
cmp dword [esp + 0x60], 0x10
jb 0x41f336
push dword [esp + 0x4c]
call fcn.0048d7cb
add esp, 4
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
test bl, 8
je 0x41f37b
and ebx, 0xfffffff7
cmp dword [esp + 0x78], 0x10
jb 0x41f366
push dword [esp + 0x64]
call fcn.0048d7cb
add esp, 4
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
test bl, 4
je 0x41f3ab
and ebx, 0xfffffffb
cmp dword [esp + 0x30], 0x10
jb 0x41f396
push dword [esp + 0x1c]
call fcn.0048d7cb
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
test bl, 2
je 0x41f3c3
cmp dword [esp + 0x48], 0x10
jb 0x41f3c3
push dword [esp + 0x34]
call fcn.0048d7cb
add esp, 4
mov eax, dword [edi]
mov dword [0x4b2980], eax
test al, 1
jne 0x41f3e2
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00491511
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
call fcn.0041efa0
cmp dword [0x4b716c], 0
jne 0x41f406
push 0xffffffffffffffff
push dword [0x4b7168]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x41f412
push dword [0x4b7180]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4b7160]
test eax, eax
je 0x41f42c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4b7160], 0
mov edx, dword [0x4b7154]
test edx, edx
jne 0x41f463
push 0x18
call fcn.0048d755
mov edx, eax
add esp, 4
test edx, edx
je 0x41f45b
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
jmp 0x41f45d
xor edx, edx
mov dword [0x4b7154], edx
mov esi, dword [edi + 4]
cmp word [esi], 0
jne 0x41f470
xor ecx, ecx
jmp 0x41f484
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f475
sub ecx, ebx
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.0041a8b0
cmp dword [edi + 0xc], 0
jne 0x41f4a7
mov eax, dword [0x4b7154]
cmp dword [eax + 0x14], 8
jb 0x41f4a0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0041f0f0
cmp dword [0x4b716c], 0
mov bl, al
jne 0x41f4d7
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.00491511
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.00491511
mov esp, ebp
pop ebp
ret
push 1
call fcn.0048ec7d
int3