Function at 0x417f80
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
push ebx
push ebp
xor eax, eax
push esi
push edi
mov ebx, str.whitelist.1st
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.0040c0f0
mov edi, eax
mov ebx, str.whitelist.rec
mov dword [esp + 0x2c], edi
call fcn.0040c0f0
xor ebp, ebp
mov esi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x4c], ebp
test edi, edi
je 0x4181ca
test esi, esi
je 0x4181ca
lea eax, [esp + 0x10]
call fcn.00418eb0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4181e4
push eax
call fcn.00412610
mov ebx, edx
mov esi, eax
add esp, 4
or eax, ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
je 0x4181ca
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
push 2
push ebx
push esi
call fcn.0047d6f0
push edx
push eax
push 1
mov edx, edi
call fcn.0041b0d0
add esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
jne 0x418039
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4181ca
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
push ecx
push str.SELECT_filename__filesize__hash_FROM_whitelist
push edx
lea eax, [esp + 0x2c]
call fcn.00412780
add esp, 0x18
cmp eax, 0x64
jne 0x418175
mov eax, dword [esp + 0x20]
mov ebx, eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418075
sub eax, edx
lea esi, [eax + 1]
lea eax, [esi + esi]
push eax
call fcn.0047a780
mov edi, eax
add esp, 4
test edi, edi
je 0x4180a0
push esi
mov eax, ebx
mov ecx, edi
call fcn.0041a9c0
add esp, 4
mov esi, dword [esp + 0x4c]
add ebp, 1
adc esi, 0
mov ecx, fcn.004159a0
mov dword [esp + 0x4c], esi
test ecx, ecx
je 0x418125
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x40]
sub eax, dword [0x4b3438]
mov ecx, dword [esp + 0x44]
sbb ecx, dword [0x4b343c]
push 0
push 0x2710
push ecx
push eax
call fcn.0048f2e0
test edx, edx
ja 0x4180fd
jb 0x4180f1
cmp eax, 0x7d0
jae 0x4180fd
cmp ebp, dword [esp + 0x30]
jne 0x418125
cmp esi, dword [esp + 0x34]
jne 0x418125
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
push esi
push ebp
call fcn.0040a780
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
add esp, 0x10
mov dword [0x4b3438], ecx
mov dword [0x4b343c], edx
test edi, edi
je 0x41814b
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push edi
push edx
call fcn.0041b150
push edi
call fcn.0047a868
add esp, 0x14
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.004126b0
mov edi, dword [esp + 0x40]
add esp, 0x14
jmp 0x418063
mov esi, dword [esp + 0x24]
test esi, esi
je 0x418182
call fcn.0041b130
mov esi, dword [esp + 0x18]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4181aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
push str._Move_file_failed._Move___s__to___s_.
push eax
call fcn.0040a310
add esp, 0x10
jmp 0x4181b9
push esi
push edi
push str.Move___s__to___s_._r_n
call fcn.0040a210
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4181ca
push eax
call fcn.0045dc80
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4181e0
push eax
call fcn.0045cf70
add esp, 4
call fcn.00419000
mov esi, dword [esp + 0x18]
test edi, edi
je 0x4181f1
push edi
call fcn.0047a868
add esp, 4
test esi, esi
je 0x4181fe
push esi
call fcn.0047a868
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret