Function at 0x42d230
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4ab0d8
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x240], eax
push ebp
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
xor edi, edi
lea eax, [esp + 0x24]
push edi
push eax
mov dword [esp + 0x24], 1
xor ebp, ebp
call fcn.0043a320
push str.ksearch_
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x270], edi
call fcn.00405d30
add esp, 0x14
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x25c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42d2c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0043a3b0
push str.ksearch_org.dat
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00405d30
add esp, 0x10
mov ecx, dword [esp + 0x10]
push ecx
mov byte [esp + 0x260], 3
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x10]
push 0x69
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00404a50
add esp, 4
add eax, 0x10
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.004050b0
add esp, 0xc
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov edx, dword [0x500de4]
mov eax, dword [edx + 0xc]
mov ecx, 0x500de4
mov byte [esp + 0x25c], 4
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
push 0x208
lea ecx, [esp + 0x4a]
push edi
push ecx
mov byte [esp + 0x268], 5
mov word [esp + 0x50], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 0x48]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.ksearch.exe
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0x3c]
call fcn.0040fdb0
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x260], 6
call fcn.0043a4c0
test eax, eax
je 0x42d480
mov eax, dword [0x500de4]
mov edx, dword [eax + 0xc]
mov ecx, 0x500de4
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x260], 7
call fcn.0042bfe0
lea ecx, [esp + 0x18]
push ecx
push str.KSearchLastVersion
mov byte [esp + 0x264], 8
call fcn.0042c7d0
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
push esi
push edx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 0x10
test eax, eax
je 0x42d422
mov ebp, 1
mov eax, dword [esp + 0x20]
push eax
push str.KSearchLastVersion
call fcn.0042b150
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x25c], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d45c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x25c], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d480
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x34]
push edx
push eax
push ecx
call fcn.0047f000
add esp, 0x14
test eax, eax
jne 0x42d4a5
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x25c], 5
call fcn.0043a570
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x25c], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42d4de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
cmp eax, edi
mov byte [esp + 0x25c], 3
je 0x42d510
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x30]
push edx
push ecx
push eax
call fcn.0042c790
mov edx, dword [esp + 0x40]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0x14
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov byte [esp + 0x25c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d544
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x25c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d56f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0048e5b2
add esp, 0x250
ret