Function at 0x406e80
Capabilities:
Check if file exists
Delete file
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x498583
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x4c1280]
xor eax, esp
mov dword [esp + 0x338], eax
push ebx
push esi
push edi
mov eax, dword [0x4c1280]
xor eax, esp
push eax
lea eax, [esp + 0x350]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
lea ecx, [esp + 0x18]
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x78], eax
call fcn.0040b370
mov dword [esp + 0x358], 0
test edi, edi
jne 0x406f43
push str.Insert_to_whitelist_parameters_error.
push str.FileValidate
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 8
mov dword [esp + 0x358], 0xffffffff
cmp dword [esp + 0x18], 0
je 0x406f3c
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406f3c
mov ecx, dword [esp + 0x1c]
push ecx
call eax
xor eax, eax
jmp 0x40766c
lea edx, [esp + 0x50]
push edx
call fcn.00407cf0
push edi
mov byte [esp + 0x35c], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
test eax, eax
jne 0x406f93
push str._s_not_exist
push str.FileValidate
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0xc
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x35c], 0
call fcn.004076a0
jmp 0x406f08
push str.start_load:_s_n
push 0xffffffffffffffff
lea edx, [esp + 0xf8]
push 0x12c
push edx
call fcn.00474d10
add esp, 0x14
lea eax, [esp + 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [esp + 0x50]
mov ecx, edi
call fcn.00403900
push edi
push str.end_load:_s_n
push 0xffffffffffffffff
lea ecx, [esp + 0xf8]
push 0x12c
push ecx
mov esi, eax
call fcn.00474d10
add esp, 0x14
lea edx, [esp + 0xec]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test esi, esi
je 0x407092
cmp esi, 0x65
je 0x407030
cmp esi, 0x66
je 0x407030
cmp esi, 0x67
je 0x407030
push esi
push edi
push str.load__s__ret:_d
push str.FileValidate
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0x10
lea eax, [esp + 0x50]
push eax
jmp 0x407040
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x407068
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x35c], 0
call fcn.004076a0
lea ecx, [esp + 0x18]
mov dword [esp + 0x358], 0xffffffff
call fcn.0040b430
xor eax, eax
jmp 0x40766c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.del_broken__s_ret:0x_x
push str.FileValidate
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0x10
lea edx, [esp + 0x50]
push edx
jmp 0x407040
mov dword [esp + 0xc8], 0
mov eax, dword [ebp + 8]
mov byte [esp + 0x358], 2
mov dword [esp + 0xc4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x14], eax
cmp eax, dword [ebx + 0x10]
jbe 0x4070c0
call fcn.00475d4f
mov esi, dword [ebx]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
mov edi, edi
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x14], eax
cmp dword [ebx + 0xc], eax
jbe 0x4070e1
call fcn.00475d4f
mov ebx, dword [ebx]
test esi, esi
je 0x4070eb
cmp esi, ebx
je 0x4070f0
call fcn.00475d4f
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x24], edx
je 0x40756f
test esi, esi
jne 0x40716f
call fcn.00475d4f
xor eax, eax
mov ecx, dword [esp + 0x24]
cmp ecx, dword [eax + 0x10]
jb 0x407117
call fcn.00475d4f
mov edi, dword [esp + 0x24]
add edi, 4
push edi
lea ecx, [esp + 0xd0]
call fcn.00409b20
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x407177
test esi, esi
jne 0x407173
call fcn.00475d4f
xor eax, eax
mov edx, dword [esp + 0x24]
cmp edx, dword [eax + 0x10]
jb 0x40714d
call fcn.00475d4f
push ebx
push edi
push 0x4b1e60
push str.FileValidate
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0x10
jmp 0x40720e
mov eax, dword [esi]
jmp 0x407109
mov eax, dword [esi]
jmp 0x40713f
test esi, esi
jne 0x407240
call fcn.00475d4f
mov eax, dword [esp + 0x24]
cmp eax, dword [esi + 0x10]
jb 0x407192
call fcn.00475d4f
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0
call ebx
mov esi, eax
push esi
call fcn.0047159e
add esp, 4
push 0
push 0
push esi
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
mov dword [esp + 0xe8], eax
call ebx
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.00404770
cmp byte [eax + 8], 0
mov edi, dword [eax]
mov ebx, dword [eax + 4]
jne 0x407250
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.0047311d
add esp, 4
mov esi, dword [esp + 0x20]
mov dword [esp + 0xc8], 0
test esi, esi
jne 0x407568
call fcn.00475d4f
xor eax, eax
mov ecx, dword [esp + 0x24]
cmp ecx, dword [eax + 0x10]
jb 0x40722b
call fcn.00475d4f
add dword [esp + 0x24], 0x404
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
jmp 0x4070d0
mov esi, dword [esi]
jmp 0x407184
mov edx, dword [esp + 0x68]
mov esi, dword [edx]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ebx
test edi, edi
je 0x407268
cmp edi, dword [esp + 0x50]
je 0x40726d
call fcn.00475d4f
cmp ebx, esi
je 0x4073f0
test edi, edi
jne 0x407327
call fcn.00475d4f
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x40728e
call fcn.00475d4f
lea esi, [esp + 0x38]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebx
call fcn.00405c00
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x40732e
call fcn.00475d4f
xor eax, eax
mov esi, dword [esp + 0x3c]
cmp esi, dword [eax + 0x18]
jne 0x4072c0
call fcn.00475d4f
mov eax, dword [ebx + 0x10]
mov ecx, dword [esi + 0x10]
push eax
push ecx
call fcn.0047a00f
add esp, 8
test eax, eax
jne 0x4073f0
lea esi, [esp + 0x40]
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ebx
call fcn.00405c00
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x407332
call fcn.00475d4f
xor eax, eax
mov esi, dword [esp + 0x44]
cmp esi, dword [eax + 0x18]
jne 0x407306
call fcn.00475d4f
push 0x20
add esi, 0x14
lea edx, [esp + 0x88]
push esi
push edx
call fcn.0040a0b0
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x407336
mov eax, dword [eax + 4]
jmp 0x407339
mov eax, dword [edi]
jmp 0x407284
mov eax, dword [eax]
jmp 0x4072b2
mov eax, dword [eax]
jmp 0x4072f8
add eax, 4
lea esi, [esp + 0x30]
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
call fcn.00405c00
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4073e6
call fcn.00475d4f
xor eax, eax
mov esi, dword [esp + 0x34]
cmp esi, dword [eax + 0x18]
jne 0x40736f
call fcn.00475d4f
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x10]
push ecx
push edx
push str.erase_l__S__S_n
push 0xffffffffffffffff
lea eax, [esp + 0xfc]
push 0x12c
push eax
call fcn.00474d10
add esp, 0x18
cmp dword [esp + 0x9c], 0x10
jb 0x4073ae
mov ecx, dword [esp + 0x88]
push ecx
call fcn.0047295c
add esp, 4
lea edx, [esp + 0xec]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea esi, [esp + 0x48]
call fcn.00405c00
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push eax
push ecx
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.00407750
jmp 0x407250
mov eax, dword [eax]
jmp 0x407361
lea esi, [esp + 0x28]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
call fcn.00405920
cmp dword [esp + 0x28], 0
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x80], ecx
je 0x40741d
mov edx, dword [esp + 0x28]
cmp edx, dword [esp + 0x50]
je 0x407422
call fcn.00475d4f
mov esi, dword [esp + 0x2c]
cmp esi, dword [esp + 0x80]
je 0x4071ff
test edi, edi
jne 0x4074b5
call fcn.00475d4f
cmp ebx, dword [edi + 0x18]
jne 0x40744a
call fcn.00475d4f
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4074b9
call fcn.00475d4f
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x407463
call fcn.00475d4f
mov eax, dword [ebx + 0x10]
mov ecx, dword [esi + 0x10]
push eax
push ecx
call fcn.0047a00f
add esp, 8
test eax, eax
jne 0x4071ff
mov ebx, dword [esp + 0x28]
test ebx, ebx
jne 0x4074bd
call fcn.00475d4f
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x407494
call fcn.00475d4f
push 0x20
lea edx, [esi + 0x14]
push edx
lea eax, [esp + 0x8c]
push eax
call fcn.0040a0b0
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x4074c1
mov edi, dword [eax + 4]
jmp 0x4074c4
mov edi, dword [edi]
jmp 0x407440
mov eax, dword [eax]
jmp 0x407459
mov eax, dword [ebx]
jmp 0x40748a
lea edi, [eax + 4]
test ebx, ebx
jne 0x407561
call fcn.00475d4f
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x4074dd
call fcn.00475d4f
mov ecx, dword [esi + 0x10]
push edi
push ecx
push str.erase_r__S__S_n
push 0xffffffffffffffff
lea edx, [esp + 0xfc]
push 0x12c
push edx
call fcn.00474d10
add esp, 0x18
cmp dword [esp + 0x9c], 0x10
jb 0x407518
mov eax, dword [esp + 0x88]
push eax
call fcn.0047295c
add esp, 4
lea ecx, [esp + 0xec]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [esp + 0x28]
push esi
push edx
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.00407750
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0xac]
push eax
lea esi, [esp + 0x58]
call fcn.00407a60
mov edi, dword [eax]
mov ebx, dword [eax + 4]
jmp 0x4073f0
mov eax, dword [ebx]
jmp 0x4074d3
mov eax, dword [esi]
jmp 0x40721d
lea edx, [esp + 0x50]
mov ecx, edi
call fcn.00403e30
xor esi, esi
cmp eax, esi
jge 0x407601
push eax
push edi
push str.save__s_ret:_d
push str.FileValidate
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
mov eax, dword [esp + 0xd8]
add esp, 0x10
cmp eax, esi
je 0x4075bc
push eax
call fcn.0047311d
add esp, 4
mov dword [esp + 0xc8], esi
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x35c], 0
call fcn.004076a0
mov dword [esp + 0x358], 0xffffffff
cmp dword [esp + 0x18], esi
je 0x406f3c
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jmp 0x406f33
mov edx, dword [esp + 0x78]
mov dword [edx], eax
mov eax, dword [esp + 0xc8]
cmp eax, esi
je 0x407622
push eax
call fcn.0047311d
add esp, 4
mov dword [esp + 0xc8], esi
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x35c], 0
call fcn.004076a0
mov dword [esp + 0x358], 0xffffffff
cmp dword [esp + 0x18], esi
je 0x407667
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x407667
mov ecx, dword [esp + 0x1c]
push ecx
call eax
mov eax, 1
mov ecx, dword [esp + 0x350]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x338]
xor ecx, esp
call fcn.00472a79
mov esp, ebp
pop ebp
ret 0x10