Function at 0x407190
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b909
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x45d274]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push esi
push edi
mov eax, dword [0x45d274]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x458], ebx
call fcn.00406480
test eax, eax
jns 0x40722f
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x407228
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x407228
push eax
call esi
xor eax, eax
jmp 0x407583
push 0x451464
lea ecx, [esp + 0x14]
call fcn.00402c30
push 0x208
lea ecx, [esp + 0x23a]
xor eax, eax
push ebx
mov byte [esp + 0x460], 1
push ecx
mov word [esp + 0x240], ax
call fcn.00431420
add esp, 0xc
lea edx, [esp + 0x234]
push edx
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x4072e1
mov byte [esp + 0x458], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4072a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x407228
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x407228
push eax
call esi
xor eax, eax
jmp 0x407583
lea edx, [esp + 0x234]
push edx
lea ecx, [esp + 0x18]
call fcn.00402c30
mov byte [esp + 0x458], 2
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x407358
cmp dword [edi + 0xc], ebx
lea esi, [edi + 0xc]
jl 0x407346
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x407346
push eax
call fcn.00403470
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40733b
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [esp + 0x10], ebx
xor ebx, ebx
jmp 0x407354
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00403370
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 0x10]
mov byte [esp + 0x458], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40737c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.EbonmediaInstaller_
lea ecx, [esp + 0x14]
call fcn.00406280
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042b860
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x4073be
mov byte [esp + 0x458], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40729b
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
mov ebx, str..llog
call fcn.00407650
mov byte [esp + 0x460], 3
mov ecx, dword [eax]
push edi
call fcn.00406dc0
mov esi, eax
mov byte [esp + 0x464], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40740f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
mov ebx, str..log
call fcn.00407650
mov byte [esp + 0x460], 4
mov ecx, dword [eax]
mov ebx, 1
push edi
mov dword [esp + 0x20], ebx
call fcn.00406dc0
add esp, 0xc
test eax, eax
jne 0x407447
test esi, esi
je 0x407449
mov esi, ebx
mov dword [esp + 0x458], ebx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407470
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0042b9b0
test esi, esi
jne 0x4074b1
mov byte [esp + 0x458], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4074a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x24]
call fcn.00406440
xor eax, eax
jmp 0x407583
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x4074c5
call fcn.00407a40
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4074dc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], 0
mov edx, dword [0x45d020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x24]
mov byte [esp + 0x460], 5
call fcn.00406f90
xor ecx, ecx
add esp, 8
test eax, eax
setns cl
lea edx, [esp + 0x2c]
push edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x458], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407550
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x458], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407578
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x24]
call fcn.00406440
mov eax, edi
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.0042eecf
mov esp, ebp
pop ebp
ret