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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44bc89
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.00406500
test eax, eax
jns 0x4072cf
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4072c8
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 0x4072c8
push eax
call esi
xor eax, eax
jmp 0x407623
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.004317a0
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 0x407381
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 0x407347
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 0x4072c8
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 0x4072c8
push eax
call esi
xor eax, eax
jmp 0x407623
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 0x4073f8
cmp dword [edi + 0xc], ebx
lea esi, [edi + 0xc]
jl 0x4073e6
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4073e6
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 0x4073db
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 0x4073f4
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 0x40741c
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.00406300
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042bbf0
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x40745e
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 0x40733b
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
mov ebx, str..llog
call fcn.004076f0
mov byte [esp + 0x460], 3
mov ecx, dword [eax]
push edi
call fcn.00406e60
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 0x4074af
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.004076f0
mov byte [esp + 0x460], 4
mov ecx, dword [eax]
mov ebx, 1
push edi
mov dword [esp + 0x20], ebx
call fcn.00406e60
add esp, 0xc
test eax, eax
jne 0x4074e7
test esi, esi
je 0x4074e9
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 0x407510
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0042bd40
test esi, esi
jne 0x407551
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 0x407541
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x24]
call fcn.004064c0
xor eax, eax
jmp 0x407623
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x407565
call fcn.00407ae0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40757c
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.00407030
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 0x4075f0
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 0x407618
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x24]
call fcn.004064c0
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.0042f25f
mov esp, ebp
pop ebp
ret