Function at 0x419120
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x462f30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [esp + 0x38]
push ebx
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00417d80
add esp, 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], 0
call fcn.00429a96
push 0
lea edx, [esp + 0x14]
push 0x467a3c
push edx
mov byte [esp + 0x4c], 1
call fcn.004148d0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4191cb
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], al
call fcn.00429abc
mov eax, dword [esp + 0x10]
or ebp, 0xffffffff
add eax, 0xfffffff0
mov dword [esp + 0x40], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4191b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x10]
push 0
push 0x467a34
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.004017d0
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x24]
add esp, 4
push eax
call fcn.00418b40
add esp, 0xc
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 2
call fcn.00429b2b
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ebp, 0xffffffff
mov byte [esp + 0x40], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419233
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x419300
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x20]
call fcn.00429989
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.00429a59
test eax, eax
jne 0x4192f4
mov eax, dword [esp + 0x20]
push 0x10
lea ecx, [esp + 0x24]
call dword [eax + 0x38]
test eax, eax
je 0x4192b8
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
call fcn.00429d75
mov eax, dword [eax]
push eax
mov byte [esp + 0x44], 3
call fcn.00419120
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x40], 1
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4192b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
jne 0x41930f
jmp 0x4192f4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
call fcn.00429d75
mov eax, dword [eax]
push eax
call edi
mov ebx, eax
mov eax, dword [esp + 0x18]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4192f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
jne 0x419351
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x419241
mov eax, dword [esp + 0x10]
push eax
call fcn.0042c3ba
add esp, 4
mov esi, eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 0
call fcn.00429abc
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x40], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x41933c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x38]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41930d