Function at 0x419600
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x47ca30]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
mov esi, dword [0x482a00]
lea ecx, [esp + 0xf8]
push edi
mov edi, dword [ebp + 8]
push 1
mov dword [esp + 0x14], 0
push 0x40d9e4
mov dword [esp + 0x18], esi
mov dword [esp + 0x118], 0xf
mov dword [esp + 0x114], 0
mov byte [esp + 0x104], 0
call fcn.00415780
mov esi, dword [esi + 0xc]
lea eax, [esp + 0xfc]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xd8]
mov dword [esp + 0xec], 0xf
mov ebx, 1
mov dword [esp + 0xe8], 0
mov byte [esp + 0xd8], 0
call fcn.00414ae0
lea ecx, [esp + 0xcc]
call fcn.00417010
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [ecx + 0xc]
call fcn.00414810
cmp dword [eax], esi
setne al
cmp dword [esp + 0xe0], 0x10
mov byte [esp + 0xf], al
jb 0x4196ec
push dword [esp + 0xcc]
call fcn.0045ad4d
mov al, byte [esp + 0x13]
add esp, 4
test al, al
jne 0x4197ba
push 7
push 0x40d9dc
lea ecx, [esp + 0xec]
mov dword [esp + 0x100], 0xf
mov dword [esp + 0xfc], 0
mov byte [esp + 0xec], al
call fcn.00415780
mov esi, dword [esp + 0x10]
lea eax, [esp + 0xe4]
push 0xffffffffffffffff
push 0
push eax
mov esi, dword [esi + 0xc]
lea ecx, [esp + 0xd8]
mov ebx, 3
mov dword [esp + 0xec], 0xf
mov dword [esp + 0xe8], 0
mov byte [esp + 0xd8], 0
call fcn.00414ae0
lea ecx, [esp + 0xcc]
call fcn.00417010
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [ecx + 0xc]
call fcn.00414810
cmp dword [eax], esi
setne al
cmp dword [esp + 0xe0], 0x10
mov byte [esp + 0xf], al
jb 0x4197b1
push dword [esp + 0xcc]
call fcn.0045ad4d
mov al, byte [esp + 0x13]
add esp, 4
mov byte [esp + 0xf], 0
test al, al
je 0x4197bf
mov byte [esp + 0xf], 1
test bl, 2
je 0x4197fe
and ebx, 0xfffffffd
cmp dword [esp + 0xf8], 0x10
jb 0x4197e0
push dword [esp + 0xe4]
call fcn.0045ad4d
add esp, 4
mov dword [esp + 0xf8], 0xf
mov dword [esp + 0xf4], 0
mov byte [esp + 0xe4], 0
test bl, 1
je 0x41981f
and ebx, 0xfffffffe
cmp dword [esp + 0x110], 0x10
jb 0x41981f
push dword [esp + 0xfc]
call fcn.0045ad4d
add esp, 4
cmp byte [esp + 0xf], 0
je 0x4199b7
cmp dword [0x482a24], 0
jne 0x419af8
test bl, 4
je 0x419848
lea ecx, [esp + 0x18]
and ebx, 0xfffffffb
call fcn.00419e30
mov eax, dword [0x482a10]
push 0x10
mov dword [0x482a24], eax
call fcn.0045acd7
mov esi, eax
add esp, 4
test esi, esi
je 0x4198d2
push 0x40d9dc
lea ecx, [esp + 0x118]
call fcn.00413ef0
push 0x40d9e4
lea ecx, [esp + 0x100]
or ebx, 8
call fcn.00413ef0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x114]
sub esp, 8
or ebx, 0x70
push eax
lea eax, [esp + 0xf0]
push eax
call fcn.00413550
mov ecx, dword [esp + 0x18]
add esp, 4
push eax
lea eax, [esp + 0x104]
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.00413550
push eax
mov ecx, esi
call fcn.004268a0
mov dword [0x482a10], eax
jmp 0x4198dc
mov dword [0x482a10], 0
test bl, 0x40
je 0x41991b
and ebx, 0xffffffbf
cmp dword [esp + 0xe0], 0x10
jb 0x4198fd
push dword [esp + 0xcc]
call fcn.0045ad4d
add esp, 4
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], 0
mov byte [esp + 0xcc], 0
test bl, 0x20
je 0x41995a
and ebx, 0xffffffdf
cmp dword [esp + 0xf8], 0x10
jb 0x41993c
push dword [esp + 0xe4]
call fcn.0045ad4d
add esp, 4
mov dword [esp + 0xf8], 0xf
mov dword [esp + 0xf4], 0
mov byte [esp + 0xe4], 0
test bl, 0x10
je 0x419999
and ebx, 0xffffffef
cmp dword [esp + 0x110], 0x10
jb 0x41997b
push dword [esp + 0xfc]
call fcn.0045ad4d
add esp, 4
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], 0
mov byte [esp + 0xfc], 0
test bl, 8
je 0x4199b7
cmp dword [esp + 0x128], 0x10
jb 0x4199b7
push dword [esp + 0x114]
call fcn.0045ad4d
add esp, 4
mov eax, dword [edi]
mov dword [0x47db94], eax
test al, 1
jne 0x4199d9
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0045ed71
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
call fcn.004193d0
cmp dword [0x482a18], 0
jne 0x4199fd
push 0xffffffffffffffff
push dword [0x482a1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x419a09
push dword [0x482a20]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x482a14]
test eax, eax
je 0x419a23
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x482a14], 0
mov edx, dword [0x482a04]
test edx, edx
jne 0x419a5a
push 0x18
call fcn.0045acd7
mov edx, eax
add esp, 4
test edx, edx
je 0x419a52
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
jmp 0x419a54
xor edx, edx
mov dword [0x482a04], edx
mov esi, dword [edi + 4]
cmp word [esi], 0
jne 0x419a67
xor ecx, ecx
jmp 0x419a7f
mov ecx, esi
lea ebx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419a70
sub ecx, ebx
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00415a10
cmp dword [edi + 0xc], 0
jne 0x419aa2
mov eax, dword [0x482a04]
cmp dword [eax + 0x14], 8
jb 0x419a9b
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00419520
cmp dword [0x482a18], 0
mov bl, al
jne 0x419ad5
push dword [0x482a1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0045ed71
mov esp, ebp
pop ebp
ret
push dword [0x482a20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x12c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045ed71
mov esp, ebp
pop ebp
ret
call fcn.00426870
int3