Function at 0x405b30
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40b768
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x411028]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push esi
push edi
mov eax, dword [0x411028]
xor eax, esp
push eax
lea eax, [esp + 0x2b0]
mov dword fs:[0], eax
mov ebx, ecx
push 0x2710
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0x38
lea esi, [ebx + 0x24]
push esi
mov dword [esp + 0x2c], ebx
call fcn.00409460
xor ecx, ecx
test eax, eax
je 0x405ba6
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x48], ecx
mov ecx, esi
call edx
mov ecx, 0x40cfc8
mov edi, ebx
call fcn.00409740
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push 0xffffffffffffffff
mov ecx, ebx
call edx
mov dword [ebx + 0x20], 1
mov eax, dword [ebx + 0x20]
cmp eax, 1
jne 0x405bd5
mov esi, ebx
call fcn.00409680
jmp 0x405bde
mov edx, dword [ebx]
mov eax, dword [edx + 0x1c]
mov ecx, ebx
call eax
mov edi, dword [esp + 0x14]
xor esi, esi
push str.SeBackupPrivilege
mov dword [edi + 0xd0], esi
mov dword [edi + 0xd4], esi
mov dword [edi + 0xd8], esi
mov dword [edi + 0xdc], esi
mov dword [esp + 0x28], esi
call fcn.004052a0
mov eax, dword [0x411744]
add esp, 4
cmp eax, esi
je 0x405c1d
push 0x411750
call eax
mov eax, dword [0x411740]
cmp eax, esi
je 0x405c3d
push Ordinal_4
call eax
mov eax, dword [0x411740]
cmp eax, esi
je 0x405c3d
push Ordinal_4
call eax
mov esi, dword [edi + 0xc]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
cmp esi, dword [edi + 0x10]
jbe 0x405c55
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [edi]
mov dword [esp + 0x18], ecx
jmp 0x405c60
mov eax, dword [edi + 0x10]
mov dword [esp + 0x20], eax
cmp dword [edi + 0xc], eax
jbe 0x405c72
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x18]
mov eax, dword [edi]
test ecx, ecx
je 0x405c80
cmp ecx, eax
je 0x405c86
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x20]
je 0x405ddd
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
push 0xffffffffffffffff
mov ecx, ebx
call eax
mov ecx, dword [ebx + 0x20]
cmp ecx, 2
je 0x405caf
mov edx, dword [ebx + 0x20]
cmp edx, 3
je 0x405caf
xor edi, edi
jmp 0x405cb4
mov edi, 1
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
mov ecx, ebx
call edx
test edi, edi
jne 0x405dd9
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x405dbc
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x405ce4
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
je 0x405d99
test edi, edi
jne 0x405dc3
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x405d0c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x405d95
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x405dca
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x405d41
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x70]
push 1
push 0
push 0
push edx
call fcn.0040ad10
mov ecx, dword [esp + 0x74]
xor ebx, ebx
add eax, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x18]
adc edx, ebx
mov dword [esi + 0x1c], edx
test eax, eax
jne 0x405dd1
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x405d7c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 0x18]
add dword [esp + 0x2c], edx
mov eax, dword [esi + 0x1c]
push edi
adc dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x405dd5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x405db0
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x14]
add esi, 0x20
jmp 0x405c60
mov eax, dword [edi]
jmp 0x405cd9
mov eax, dword [edi]
jmp 0x405d01
mov eax, dword [eax]
jmp 0x405d36
mov eax, dword [eax]
jmp 0x405d71
mov eax, dword [edi]
jmp 0x405da5
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
xor esi, esi
xor eax, eax
mov dword [edi + 0xd8], ecx
mov dword [edi + 0xdc], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], eax
cmp dword [0x41174c], esi
je 0x405e1f
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x41174c]
mov eax, dword [esp + 0x48]
neg eax
sbb eax, eax
and eax, 0x100
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov dword [esp + 0x2b8], esi
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
push 0xffffffffffffffff
mov ecx, ebx
call eax
mov ecx, dword [ebx + 0x20]
cmp ecx, 2
je 0x405e5c
mov edx, dword [ebx + 0x20]
cmp edx, 3
je 0x405e5c
xor esi, esi
jmp 0x405e61
mov esi, 1
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
mov ecx, ebx
call edx
test esi, esi
jne 0x4061f0
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 0xc]
cmp ebx, dword [eax + 0x10]
jbe 0x405e84
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
mov dword [esp + 0x18], esi
mov edi, edi
mov eax, dword [edi + 0x10]
mov dword [esp + 0x20], eax
cmp dword [edi + 0xc], eax
jbe 0x405ea2
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [edi]
test esi, esi
je 0x405eac
cmp esi, edi
je 0x405eb2
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, dword [esp + 0x20]
je 0x4061f0
mov edi, dword [esp + 0x28]
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push 0xffffffffffffffff
mov ecx, edi
call edx
mov eax, dword [edi + 0x20]
cmp eax, 2
je 0x405ee3
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x20], 0
cmp ecx, 3
jne 0x405eeb
mov dword [esp + 0x20], 1
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
mov ecx, edi
call eax
cmp dword [esp + 0x20], 0
jne 0x4061f0
test esi, esi
jne 0x406115
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x405f1a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [ebx + 0xc]
call fcn.00409740
test esi, esi
jne 0x40611c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 0x10]
jb 0x405f3b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [ebx + 4], 0
je 0x40616c
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x406123
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x405f64
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [ebx + 8]
test edi, edi
jne 0x40612a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x405f82
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x50]
mov eax, dword [ebx + 4]
push 0
lea ecx, [esp + 0x28]
push ecx
push 0
or edx, 1
push edx
push 4
push 0
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406158
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test edi, edi
jne 0x406131
call esi
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x405fc5
call esi
mov eax, dword [ebx + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405ff0
test edi, edi
jne 0x406138
call esi
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x405fe6
call esi
mov eax, dword [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
jne 0x40613f
call esi
cmp ebx, dword [edi + 0x10]
jb 0x406001
call esi
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x24]
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyExW]
mov esi, eax
test esi, esi
je 0x406094
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x4c]
push esi
push eax
call fcn.00403540
add esp, 8
mov edi, eax
mov byte [esp + 0x2b8], 1
cmp dword [esp + 0x18], 0
jne 0x406146
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40605b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [ebx + 0x10]
mov eax, dword [esp + 0x24]
mov ecx, dword [edi]
push 4
push str.NULL
push edx
push eax
push ecx
push esi
lea edx, [esp + 0x50]
push 0x40d890
push edx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x20
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2b8], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], 0
test eax, eax
jne 0x406151
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4060c6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 0x10]
lea ecx, [esp + 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40616c
mov edx, dword [esp + 0x70]
push 1
push 0
push 0
push edx
call fcn.0040ad10
mov ecx, eax
mov eax, dword [esp + 0x74]
xor edi, edi
add ecx, eax
mov eax, dword [esp + 0x14]
adc edx, edi
add dword [eax + 0xd0], ecx
push esi
adc dword [eax + 0xd4], edx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40616c
mov eax, dword [esi]
jmp 0x405f0f
mov esi, dword [esi]
jmp 0x405f30
mov eax, dword [edi]
jmp 0x405f59
mov eax, dword [edi]
jmp 0x405f77
mov eax, dword [edi]
jmp 0x405fbe
mov eax, dword [edi]
jmp 0x405fdf
mov edi, dword [edi]
jmp 0x405ffa
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
jmp 0x406050
mov eax, dword [eax]
jmp 0x4060bb
push eax
lea ecx, [esp + 0x3c]
push str.CreateKeyEx_Error__error___x
push ecx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0xc
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4061e8
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x406187
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [ebx + 0x18]
add dword [esp + 0x3c], edx
mov edi, dword [esp + 0x28]
mov eax, dword [ebx + 0x1c]
adc dword [esp + 0x40], eax
lea esi, [edi + 0x24]
push esi
call fcn.00409460
test eax, eax
je 0x4061bd
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov eax, dword [esi]
mov dword [edi + 0x44], ecx
mov dword [edi + 0x48], edx
mov edx, dword [eax + 0x1c]
mov ecx, esi
call edx
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4061ec
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4061d8
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
add ebx, 0x20
jmp 0x405e90
mov eax, dword [eax]
jmp 0x40617c
mov eax, dword [eax]
jmp 0x4061cd
mov esi, dword [esp + 0x28]
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push 0xffffffffffffffff
mov ecx, esi
call edx
mov eax, dword [esi + 0x20]
cmp eax, 2
je 0x406215
mov ecx, dword [esi + 0x20]
cmp ecx, 3
je 0x406215
xor ebx, ebx
xor edi, edi
jmp 0x40621c
mov edi, 1
xor ebx, ebx
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
cmp edi, ebx
je 0x406245
mov eax, dword [esp + 0x14]
mov dword [eax + 0xd8], ebx
mov dword [eax + 0xdc], ebx
mov dword [eax + 0xd0], ebx
mov dword [eax + 0xd4], ebx
mov eax, dword [0x41173c]
cmp eax, ebx
je 0x406265
push Ordinal_4
call eax
mov eax, dword [0x41173c]
cmp eax, ebx
je 0x406265
push Ordinal_4
call eax
mov eax, dword [0x411748]
cmp eax, ebx
je 0x406277
mov ecx, dword [0x411750]
push ecx
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push 0xffffffffffffffff
mov ecx, esi
call eax
mov dword [esi + 0x20], 4
mov ecx, dword [esi + 0x20]
mov edi, 1
cmp ecx, edi
jne 0x4062f4
cmp dword [esi + 0x94], ebx
je 0x4062f4
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x88]
mov edx, eax
shr edx, 2
mov edx, dword [ecx + edx*4]
and eax, 3
lea ecx, [edx + eax*4]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esi + 0x8c]
add dword [esi + 0x90], edi
mov eax, dword [esi + 0x90]
add ecx, ecx
add ecx, ecx
cmp ecx, eax
ja 0x4062dd
mov dword [esi + 0x90], ebx
add dword [esi + 0x94], 0xffffffff
jne 0x4062ec
mov dword [esi + 0x90], ebx
cmp dword [esi + 0x94], ebx
jne 0x40629d
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
lea ecx, [esp + 0x38]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov ecx, dword [esp + 0x2b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.0040a4b0
mov esp, ebp
pop ebp
ret