Function at 0x4054d0
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5354bd
mov eax, dword fs:[0]
push eax
sub esp, 0xf08
mov eax, dword [0x584c30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, ecx
lea ecx, [ebp - 0xefc]
mov dword [ebp - 0xed0], edi
call fcn.0041a3e5
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x812]
mov dword [ebp - 4], 0
push ecx
mov word [ebp - 0x814], ax
call fcn.00511ef0
add esp, 0xc
call fcn.0040f7ee
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405553
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xec4], eax
push esi
lea ecx, [ebp - 0x814]
push str._s.
push ecx
mov byte [ebp - 4], 1
call fcn.0050e6b1
add esp, 0xc
push 0
lea edx, [ebp - 0x814]
push edx
lea ecx, [ebp - 0xefc]
call fcn.0041a48c
test eax, eax
je 0x405c5a
lea ebx, [ebx]
lea ecx, [ebp - 0xefc]
call fcn.0041a0e7
mov dword [ebp - 0xee0], eax
lea eax, [ebp - 0xed8]
push eax
lea ecx, [ebp - 0xefc]
call fcn.0041a6cf
mov ecx, dword [eax]
lea edx, [ebp - 0x814]
jmp 0x4055d0
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4055d0
mov eax, dword [ebp - 0xed8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405603
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0xefc]
call fcn.0041a3a7
test eax, eax
jne 0x405c4d
mov edx, dword [ebp - 0xefc]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0xefc]
call eax
test eax, eax
je 0x40572c
mov edx, dword [edi + 0x20]
lea ecx, [ebp - 0x814]
push ecx
push 0x3f4
push edx
call dword [sym.imp.SHLWAPI.dll_PathSetDlgItemPathW]
mov eax, dword [edi + 0xf48]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push pe_nt_image_headers32
push eax
call esi
cmp eax, 1
jne 0x40567e
push str.C:Windows
lea ecx, [ebp - 0x814]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x405c4d
cmp dword [0x58dad4], 0
je 0x405719
lea edx, [ebp - 0xedc]
push edx
lea ecx, [ebp - 0xefc]
call fcn.0041a768
mov eax, dword [eax]
push str.everything.ed7ba470_8e54_465e_825c_99712043e01c
push eax
call fcn.0050e96c
add esp, 8
test eax, eax
mov eax, dword [ebp - 0xedc]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x405719
mov ecx, dword [edi + 0xc8]
push 0
push 0
push 0x1004
push ecx
call esi
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x814]
push edx
push eax
push 1
lea ecx, [edi + 0xa8]
call fcn.004131a9
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405c4d
lea ecx, [ebp - 0x814]
push ecx
mov ecx, edi
call fcn.004054d0
jmp 0x405c4d
call fcn.0040f7ee
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x405549
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xec8], eax
lea ecx, [ebp - 0xed4]
push ecx
lea ecx, [ebp - 0xefc]
mov byte [ebp - 4], 2
call fcn.0041a6cf
mov byte [ebp - 4], 3
mov edx, dword [eax]
push edx
lea eax, [ebp - 0xec8]
push 0x5632b4
push eax
call fcn.00401880
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xed4]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0xec8]
push ecx
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add ebx, 0xfffffff0
mov dword [ebp - 0xecc], esp
mov dword [ebp - 0xebc], esp
mov dword [ebp - 0xecc], ebx
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x4057e9
cmp eax, dword [ebx]
jne 0x4057e9
mov esi, ebx
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x405824
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x405d16
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebx + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.0050e4bf
add esp, 0x10
mov edx, dword [ebp - 0xebc]
add esi, 0x10
push edi
mov dword [edx], esi
call fcn.00409820
mov eax, dword [edi + 0x808]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push pe_nt_image_headers32
push eax
call esi
test eax, eax
jne 0x4058c7
mov ecx, dword [edi + 0x6ac]
push eax
push eax
push pe_nt_image_headers32
push ecx
call esi
test eax, eax
jne 0x4058c7
mov edx, dword [edi + 0x794]
push eax
push eax
push pe_nt_image_headers32
push edx
call esi
test eax, eax
jne 0x4058c7
push eax
push eax
mov eax, dword [edi + 0x720]
push pe_nt_image_headers32
push eax
call esi
test eax, eax
jne 0x4058c7
cmp dword [0x58dac8], eax
jne 0x4058c7
cmp dword [0x58dacc], eax
jne 0x4058c7
cmp dword [0x58dad4], eax
jne 0x4058c7
lea ecx, [edi + 0xd58]
call fcn.00401e30
test eax, eax
jne 0x4058c7
lea ecx, [edi + 0xeb4]
call fcn.00401e30
test eax, eax
je 0x405d1b
mov ecx, dword [edi + 0xf48]
push 0
push 0
push pe_nt_image_headers32
push ecx
call esi
cmp eax, 1
jne 0x40591a
push str.C:Windows
lea edx, [ebp - 0x814]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x40591a
mov byte [ebp - 4], 1
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405c4d
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
jmp 0x405c4d
lea ecx, [ebp - 0x814]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405cf0
call fcn.0040f7ee
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x405549
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xec0], eax
lea ecx, [ebp - 0xec0]
call fcn.0040a590
push 0
push 0
mov byte [ebp - 4], 5
mov ecx, dword [edi + 0xed4]
push pe_nt_image_headers32
push ecx
call esi
cmp eax, 1
jne 0x405cca
lea edx, [ebp - 0x814]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push str..exe
push eax
mov dword [ebp - 0xeb8], eax
call fcn.0050e96c
add esp, 8
test eax, eax
je 0x405a08
mov eax, dword [ebp - 0xeb8]
push str..dll
push eax
call fcn.0050e96c
add esp, 8
test eax, eax
je 0x405a08
mov ecx, dword [ebp - 0xeb8]
push str..scr
push ecx
call fcn.0050e96c
add esp, 8
test eax, eax
je 0x405a08
mov edx, dword [ebp - 0xeb8]
push str..bat
push edx
call fcn.0050e96c
add esp, 8
test eax, eax
je 0x405a08
mov eax, dword [ebp - 0xeb8]
push str..pif
push eax
call fcn.0050e96c
add esp, 8
test eax, eax
jne 0x405cca
xor eax, eax
lea ecx, [ebp - 0xf10]
mov dword [ebp - 0xeb4], eax
mov dword [ebp - 0xeb0], eax
mov dword [ebp - 0xeac], eax
mov dword [ebp - 0xea8], eax
mov dword [ebp - 0xea4], eax
mov dword [ebp - 0xea0], eax
call fcn.0041b06d
push 0x3ff
lea ecx, [ebp - 0xc13]
push 0
mov byte [ebp - 4], 6
push ecx
mov byte [ebp - 0xc14], 0
call fcn.00511ef0
add esp, 0xc
push 0x400
lea edx, [ebp - 0x814]
push edx
lea eax, [ebp - 0xc14]
push eax
call fcn.0050ff9c
add esp, 0xc
push 0
lea ecx, [ebp - 0xeb4]
push ecx
lea edx, [ebp - 0x814]
push edx
call fcn.0041b7cc
test eax, eax
je 0x405b3f
lea eax, [ebp - 0xeb4]
push eax
lea ecx, [ebp - 0xc38]
push ecx
call fcn.0050f3bf
add esp, 8
test eax, eax
jne 0x405ac0
mov edx, dword [ebp - 0xc24]
add edx, 0x76c
mov dword [ebp - 0xeb8], edx
jmp 0x405aca
mov dword [ebp - 0xeb8], 0
lea eax, [ebp - 0xeb4]
push eax
lea ecx, [ebp - 0xc80]
push ecx
call fcn.0050f3bf
add esp, 8
test eax, eax
jne 0x405af3
mov edx, dword [ebp - 0xc70]
inc edx
mov dword [ebp - 0xebc], edx
jmp 0x405afd
mov dword [ebp - 0xebc], 0
lea eax, [ebp - 0xeb4]
push eax
lea ecx, [ebp - 0xc5c]
push ecx
call fcn.0050f3bf
mov edx, dword [ebp - 0xeb8]
mov ecx, dword [ebp - 0xebc]
neg eax
sbb eax, eax
push edx
not eax
and eax, dword [ebp - 0xc50]
push ecx
push eax
lea edx, [ebp - 0xec0]
push str._d__d__d
push edx
call fcn.00401880
add esp, 0x1c
lea ecx, [ebp - 0xc14]
call fcn.00409200
test eax, eax
jne 0x405cbb
lea ecx, [ebp - 0xefc]
call fcn.0041a124
push edx
push eax
lea eax, [ebp - 0xec4]
push str._I64d
push eax
call fcn.00401880
mov ecx, dword [edi + 0xc8]
add esp, 0x10
push 0
push 0
push 0x1004
push ecx
call esi
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x814]
push edx
mov esi, eax
push esi
add edi, 0xa8
push 1
mov ecx, edi
call fcn.004131a9
mov eax, dword [ebp - 0xec4]
push eax
push 1
push esi
mov ecx, edi
call fcn.00412d98
mov ebx, dword [ebp - 0xec0]
push ebx
push 2
push esi
mov ecx, edi
call fcn.00412d98
push str.Lock
push 3
push esi
mov ecx, edi
call fcn.00412d98
push str.Lock
push 4
push esi
mov ecx, edi
call fcn.00412d98
push str.Lock
push 5
push esi
mov ecx, edi
call fcn.00412d98
lea ecx, [ebp - 0xf10]
mov byte [ebp - 4], 5
call fcn.0041b1db
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xecc]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0xed0]
cmp dword [ebp - 0xee0], 0
jne 0x4055a0
lea ecx, [ebp - 0xefc]
call fcn.0041a001
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xec4]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0xefc]
mov dword [ebp - 4], 0xffffffff
call fcn.0041a417
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050e062
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0xf10]
mov byte [ebp - 4], 5
call fcn.0041b1db
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xec0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405cf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c4d
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x405c4d
call fcn.004017a0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xec8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x405c65