Function at 0x506440
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bfa0
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x640040]
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 dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call fcn.005062e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 2
push str.SIMULATION
push dword [ebp - 0x1c]
push 0x5f0710
lea eax, [ebp - 0x20]
push eax
mov ebx, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__31]
call ebx
add esp, 0x10
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x274], eax
cmp eax, 0xffffffff
je 0x506655
test byte [ebp - 0x270], 0x10
jne 0x506584
mov edx, 0x58d8e4
lea ecx, [ebp - 0x244]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x506518
test ax, ax
je 0x506514
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x506518
add ecx, 4
add edx, 4
test ax, ax
jne 0x5064f2
xor eax, eax
jmp 0x50651d
sbb eax, eax
or eax, 1
test eax, eax
je 0x506584
mov ecx, 0x5f071c
lea eax, [ebp - 0x244]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x506556
test dx, dx
je 0x506552
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x506556
add eax, 4
add ecx, 4
test dx, dx
jne 0x506530
xor eax, eax
jmp 0x50655b
sbb eax, eax
or eax, 1
test eax, eax
je 0x506584
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x1c]
push 0x58ddec
lea eax, [ebp - 0x18]
push eax
call ebx
add esp, 0x10
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
jmp 0x50658a
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x274]
call edi
test eax, eax
je 0x50665d
test byte [ebp - 0x270], 0x10
jne 0x506590
mov ecx, 0x58d8e4
lea eax, [ebp - 0x244]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5065e6
test dx, dx
je 0x5065e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5065e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x5065c0
xor eax, eax
jmp 0x5065eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x506590
mov ecx, 0x5f071c
lea eax, [ebp - 0x244]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x506626
test dx, dx
je 0x506622
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x506626
add eax, 4
add ecx, 4
test dx, dx
jne 0x506600
xor eax, eax
jmp 0x50662b
sbb eax, eax
or eax, 1
test eax, eax
je 0x506590
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x1c]
push 0x58ddec
lea eax, [ebp - 0x18]
push eax
call ebx
add esp, 0x10
push dword [ebp - 0x18]
call esi
jmp 0x506590
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x506663
mov eax, dword [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.tempclonefile.uic
push dword [ebp - 0x1c]
push 0x58ddec
lea eax, [ebp - 0x18]
push eax
call ebx
add esp, 0x10
push dword [ebp - 0x18]
call esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov dword [ebp - 4], 0xffffffff
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.0055c86d
mov esp, ebp
pop ebp
ret