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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44bb29
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x45e274]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push esi
push edi
mov eax, dword [0x45e274]
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.004064e0
test eax, eax
jns 0x4072af
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4072a8
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 0x4072a8
push eax
call esi
xor eax, eax
jmp 0x407603
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.00431630
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 0x407361
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 0x407327
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 0x4072a8
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 0x4072a8
push eax
call esi
xor eax, eax
jmp 0x407603
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 0x4073d8
cmp dword [edi + 0xc], ebx
lea esi, [edi + 0xc]
jl 0x4073c6
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4073c6
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 0x4073bb
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 0x4073d4
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 0x4073fc
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.004062e0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042ba70
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x40743e
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 0x40731b
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
mov ebx, str..llog
call fcn.004076d0
mov byte [esp + 0x460], 3
mov ecx, dword [eax]
push edi
call fcn.00406e40
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 0x40748f
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.004076d0
mov byte [esp + 0x460], 4
mov ecx, dword [eax]
mov ebx, 1
push edi
mov dword [esp + 0x20], ebx
call fcn.00406e40
add esp, 0xc
test eax, eax
jne 0x4074c7
test esi, esi
je 0x4074c9
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 0x4074f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0042bbc0
test esi, esi
jne 0x407531
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 0x407521
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x24]
call fcn.004064a0
xor eax, eax
jmp 0x407603
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x407545
call fcn.00407ac0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40755c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], 0
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
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.00407010
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 0x4075d0
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 0x4075f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x24]
call fcn.004064a0
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.0042f0df
mov esp, ebp
pop ebp
ret