Function at 0x43fa00
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x424], ecx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.0040a800
add esp, 8
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43fa9d
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43fa7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x4a0854
push 0x4a0848
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0x10
jmp 0x43fa9d
lea ecx, [ebp - 0x210]
push ecx
push 0x4a0880
push 0x4a0874
call fcn.00401340
add esp, 4
push eax
call fcn.004013f0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.0040a850
add esp, 8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43fb21
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43faff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x210]
push edx
push 0x4a089c
push 0x4a0890
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0x10
jmp 0x43fb21
lea eax, [ebp - 0x210]
push eax
push 0x4a08c8
push 0x4a08bc
call fcn.00401340
add esp, 4
push eax
call fcn.004013f0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x420], cx
push 0x206
push 0
lea edx, [ebp - 0x41e]
push edx
call fcn.00472990
add esp, 0xc
push 0x104
lea eax, [ebp - 0x420]
push eax
call fcn.0040a7c0
add esp, 8
push str.update.dat
push 0x104
lea ecx, [ebp - 0x420]
push ecx
call fcn.00472b79
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43fbdd
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43fbbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x420]
push ecx
push 0x4a08fc
push 0x4a08f0
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0x10
jmp 0x43fbdd
lea edx, [ebp - 0x420]
push edx
push 0x4a0924
push 0x4a0918
call fcn.00401340
add esp, 4
push eax
call fcn.004013f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x420]
push eax
call fcn.0040a7c0
add esp, 8
push str.wsus.dat
push 0x104
lea ecx, [ebp - 0x420]
push ecx
call fcn.00472b79
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43fc7a
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43fc58
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x420]
push ecx
push str.del__s_ret:_d
push 0x4a0948
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0x10
jmp 0x43fc7a
lea edx, [ebp - 0x420]
push edx
push 0x4a097c
push 0x4a0970
call fcn.00401340
add esp, 4
push eax
call fcn.004013f0
add esp, 0xc
call fcn.0046a130
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x428]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x428]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x43fd29
call fcn.0046a130
mov dword [ebp - 0x42c], eax
push 0
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [ebp - 0x42c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x42c]
mov edx, dword [eax + 0x28]
call edx
call fcn.0046a130
mov dword [ebp - 0x430], eax
push 0
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x430]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x430]
mov eax, dword [edx + 0x20]
call eax
call fcn.0046a130
mov dword [ebp - 0x434], eax
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [ebp - 0x434]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x434]
mov edx, dword [eax + 0x14]
call edx
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43fd44
push str.cant_open_ctrl_device
push 0x4a098c
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472a79
mov esp, ebp
pop ebp
ret