Function at 0x10077ee0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101634a7
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0x688], eax
push ebx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, esp
push eax
lea eax, [esp + 0x6a0]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xb0], ebx
jne 0x10077f36
mov eax, 0x80040573
jmp 0x100781a8
mov ecx, dword [esi + 0xb0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
add esi, 0xc
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], eax
call fcn.10017430
push ebx
push ebx
mov dword [esp + 0x6b0], ebx
push 1
lea esi, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.100163a0
mov eax, dword [esp + 0x14]
mov ecx, 0x2a
mov word [eax], cx
mov dword [eax - 4], 1
mov ecx, esi
lea esi, [esp + 0x18]
mov byte [esp + 0x6a8], 1
call fcn.100178e0
mov byte [esp + 0x6a8], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10077fb9
lea edx, [eax - 0xc]
test edx, edx
je 0x10077fb9
add eax, 0xfffffff4
dec dword [eax]
jne 0x10077fb9
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x20]
call fcn.100176f0
mov edi, eax
push 1
lea ecx, [esp + 0x1c]
push ecx
lea esi, [esp + 0x30]
mov byte [esp + 0x6b0], 2
call fcn.100175b0
mov edx, dword [edi]
mov ecx, dword [eax]
lea ebx, [esp + 0x2c]
mov dword [esp + 0x2c], 0xffffffff
mov byte [esp + 0x280], 1
call fcn.10023da0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1007801e
lea edx, [eax - 0xc]
test edx, edx
je 0x1007801e
add eax, 0xfffffff4
dec dword [eax]
jne 0x1007801e
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov byte [esp + 0x6a8], 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10078046
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10078046
add eax, 0xfffffff4
dec dword [eax]
jne 0x10078046
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov ecx, dword [esp + 0x2c]
cmp ecx, 0xffffffff
je 0x10078184
cmp byte [esp + 0x280], 0
je 0x10078061
mov al, 1
jmp 0x10078076
lea edx, [esp + 0x30]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, dword [esp + 0x2c]
test eax, eax
setne al
mov byte [esp + 0x280], 0
test al, al
je 0x1007816c
lea eax, [esp + 0x48a]
push eax
lea ecx, [esp + 0x286]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x286]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea edi, [esp + 0x286]
lea eax, [esp + 0x18]
call fcn.100164f0
mov eax, 4
lea esi, [esp + 0x20]
lea ecx, [esp + 0x14]
mov byte [esp + 0x6a8], 5
call fcn.10016dc0
mov eax, dword [eax]
test eax, eax
je 0x100780f2
push 0x10414ac4
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
jmp 0x100780f7
mov eax, SysReAllocString
test eax, eax
mov eax, dword [esp + 0x20]
sete bl
test eax, eax
je 0x1007811c
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1007811c
add eax, 0xfffffff4
dec dword [eax]
jne 0x1007811c
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
test bl, bl
je 0x1007813e
mov byte [esp + 0x6a8], 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10078046
lea edx, [eax - 0xc]
test edx, edx
jmp 0x10078033
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x6a8], 4
test esi, esi
je 0x10078046
lea eax, [esi - 0xc]
test eax, eax
je 0x10078046
lea eax, [esi - 0xc]
jmp 0x10078038
cmp ecx, 0xffffffff
je 0x10078184
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x10078184
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100781a4
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x100781a4
add eax, 0xfffffff4
dec dword [eax]
jne 0x100781a4
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x6a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x688]
xor ecx, esp
call fcn.10148524
mov esp, ebp
pop ebp
ret 4