Function at 0x4073d0
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x43ac58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f6c4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00416e3f
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x407415
push 0x80004005
call fcn.00401370
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
cmp dword [ebx + 0x7a2c], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x2c], esi
jle 0x407629
lea eax, [ebx + 0x5c4]
mov dword [esp + 0x20], 0xdb
mov dword [esp + 0x24], eax
cmp dword [eax + 4], 0
je 0x407601
cmp dword [eax], 0
mov dword [esp + 0x1c], 0
jle 0x407601
cmp dword [ebx + 0x7a2c], 0
mov dword [esp + 0x28], 0
jle 0x407542
lea ecx, [ebx + 0x36c]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x25c], 0
jne 0x407523
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
add eax, ecx
mov esi, dword [ebx + eax*4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
mov dword [esp + 0x34], esp
mov ebp, esp
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x4074d1
cmp eax, dword [esi]
jne 0x4074d1
mov edi, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x40750c
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x4076c7
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004276df
add esp, 0x10
mov ecx, dword [esp + 0x1c]
add edi, 0x10
mov dword [ebp], edi
call fcn.00402830
test eax, eax
jne 0x4075e8
mov eax, dword [esp + 0x28]
add dword [esp + 0x18], 0x260
add eax, 1
cmp eax, dword [ebx + 0x7a2c]
mov dword [esp + 0x28], eax
jl 0x407485
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
add ecx, edx
mov esi, dword [ebx + ecx*4]
lea ebp, [ebx + ecx*4]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub esi, 0x10
mov dword [esp + 0x34], esp
mov dword [esp + 0x2c], esp
call edx
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x407582
cmp eax, dword [esi]
jne 0x407582
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4075bd
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x4076c7
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004276df
add esp, 0x10
mov ecx, dword [esp + 0x2c]
add edi, 0x10
mov dword [ecx], edi
mov ecx, ebx
call fcn.00406040
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4075e8
mov ebp, dword [ebp]
push 4
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
add eax, 1
cmp eax, dword [edx]
mov dword [esp + 0x1c], eax
jl 0x407466
mov eax, edx
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x20], 0x98
add ecx, 1
add eax, 0x260
cmp ecx, dword [ebx + 0x7a2c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], eax
jl 0x40744b
add ebx, 0x160
push ebx
lea eax, [esp + 0x18]
push str._sRealtekAudioHDA
push eax
call fcn.00403170
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
push 4
push 0
push ecx
call esi
push ebx
lea edx, [esp + 0x18]
push str._sRealtekAudio
push edx
call fcn.00403170
mov eax, dword [esp + 0x20]
add esp, 0xc
push 4
push 0
push eax
call esi
push ebx
lea ecx, [esp + 0x18]
push str._sRealtek
push ecx
call fcn.00403170
mov edi, dword [esp + 0x20]
add esp, 0xc
push 4
push 0
push edi
call esi
lea eax, [edi - 0x10]
mov dword [esp + 0x3c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4076b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
jmp fcn.00401e30