Function at 0x44b3a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce208
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x504c94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x509e48], 2
jne 0x44b3dc
push str.C:FilesPreScan.db
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
mov esi, 0x4d9c38
cmp dword [0x509e48], ebx
je 0x44b3f0
mov esi, str.C:FilesPreScan.db
mov edi, 0x50a090
call fcn.004856e0
push 0x50a0b4
mov dword [0x50a0b0], ebx
mov dword [0x50a0ac], ebx
call fcn.00429984
push 0x4d9c38
call fcn.004ab8ea
add esp, 4
push eax
push 0x4d9c38
mov ecx, 0x50a0cc
call fcn.00423f13
mov edi, 0x509ef0
mov dword [0x50a0d0], 1
call fcn.004366ea
mov eax, dword [eax]
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], esi
call fcn.0049d1fb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x44b467
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.Adding_dir_to_avoid:__s
mov dword [ebp - 4], ebx
test ecx, 0xffff0000
jne 0x44b561
mov edx, ecx
movzx edi, dx
push edi
call fcn.004a5121
mov ebx, eax
test ebx, ebx
je 0x44b57b
mov eax, edi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44b57b
push edi
push eax
push ebx
call fcn.004216fe
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x44b57b
mov eax, dword [esi]
movzx edi, word [ebx]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or eax, ecx
jge 0x44b4ef
push edi
mov ecx, esi
call fcn.0042151d
movzx eax, word [ebx]
mov edx, dword [esi]
add ebx, 2
mov dword [ebp - 0x10], edx
cmp eax, 0xffffffff
jne 0x44b509
push ebx
call fcn.004ab8ea
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [edi + edi]
push ebx
push ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004ab372
add esp, 0x10
cmp eax, 0x50
ja case.0x44b66b.1
movzx edx, byte [eax + 0x44b708]
jmp dword [edx*4 + 0x44b6f8]
call fcn.0049d763
test edi, edi
jl 0x44b557
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x44b557
mov edx, dword [ebp - 0x14]
mov dword [eax - 0xc], edi
mov eax, dword [esi]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x44b57b
push 0x80070057
call fcn.00421000
push str.Adding_dir_to_avoid:__s
call fcn.004ab8ea
add esp, 4
push eax
push str.Adding_dir_to_avoid:__s
mov ecx, esi
call fcn.00423f13
push ecx
mov dword [ebp - 4], 1
mov ebx, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x1c], ebx
call fcn.0049d1fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x44b5a5
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov ecx, str.General
mov byte [ebp - 4], 2
test ecx, 0xffff0000
jne 0x44b69a
mov edx, ecx
movzx esi, dx
push esi
call fcn.004a5121
mov edi, eax
test edi, edi
je 0x44b6b4
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44b6b4
push esi
push eax
push edi
call fcn.004216fe
mov edi, eax
add esp, 0xc
test edi, edi
je 0x44b6b4
mov eax, dword [ebx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x44b62e
push esi
mov ecx, ebx
call fcn.0042151d
movzx eax, word [edi]
mov edx, dword [ebx]
add edi, 2
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
jne 0x44b648
push edi
call fcn.004ab8ea
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push edi
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004ab372
add esp, 0x10
cmp eax, 0x50
ja case.0x44b66b.1
movzx edx, byte [eax + 0x44b76c]
jmp dword [edx*4 + 0x44b75c]
call fcn.0049d79b
test esi, esi
jl 0x44b557
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x44b557
mov edx, dword [ebp - 0x10]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x44b6b4
push str.General
call fcn.004ab8ea
add esp, 4
push eax
push str.General
mov ecx, ebx
call fcn.00423f13
mov byte [ebp - 4], 1
push 1
mov dword [ebp - 4], 0xffffffff
call fcn.0046b810
add esp, 0x10
mov edi, 0x509ef0
call fcn.004366ea
push eax
mov eax, 0x509f4c
call fcn.00429deb
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret