Function at 0x10004fb0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10024db6
mov eax, dword fs:[0]
push eax
sub esp, 0xe58
mov eax, dword [0x1002e210]
xor eax, esp
mov dword [esp + 0xe50], eax
push ebx
push esi
push edi
mov eax, dword [0x1002e210]
xor eax, esp
push eax
lea eax, [esp + 0xe68]
mov dword fs:[0], eax
call fcn.10004730
test eax, eax
je 0x100050ab
lea ecx, [esp + 0x10]
call fcn.100044b0
xor edi, edi
push 0x208
lea eax, [esp + 0x230]
push edi
push eax
mov dword [esp + 0xe7c], edi
call fcn.10016010
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
push str._sSoftMgr360cfzz.dll
mov ecx, 0x104
lea ebx, [esp + 0x234]
call fcn.100099c0
add esp, 8
mov edx, ebx
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000507e
mov eax, ebx
push eax
call fcn.10009750
add esp, 4
test eax, eax
je 0x1000507e
push str.cfzz_001
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x1000507e
push edi
call eax
add esp, 4
mov dword [esp + 0xe70], 0xffffffff
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
jg 0x100050ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x100050ad
xor edi, edi
call fcn.10006140
test eax, eax
jne 0x100050c3
call fcn.1000b950
test eax, eax
je 0x100052dd
call fcn.10004170
push 0x206
lea edx, [esp + 0xa52]
xor ecx, ecx
push edi
push edx
mov word [esp + 0xa58], cx
call fcn.10016010
add esp, 0xc
push 0x20
push str.BQAGAFMAEAAFABUATQBKAAgAAACSAA
lea esi, [esp + 0xa54]
call fcn.10005f30
mov ebx, 6
mov ecx, esi
call fcn.10006000
lea ecx, [esp + 0x14]
call fcn.100044b0
push 0x208
lea eax, [esp + 0x438]
push edi
push eax
mov dword [esp + 0xe7c], 1
call fcn.10016010
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
push str._s_safemon_safe505.dll
mov ecx, 0x104
lea ebx, [esp + 0x43c]
call fcn.100099c0
add esp, 8
mov edx, ebx
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100052b2
mov eax, ebx
push eax
call fcn.10009750
add esp, 4
test eax, eax
je 0x100052b2
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x1c]
push edx
call fcn.10014fdb
add esp, 4
push 0x208
lea eax, [esp + 0xc58]
push edi
push eax
call fcn.10016010
add esp, 0xc
call fcn.10014fed
push eax
push 0x10029520
mov ecx, 0x104
lea ebx, [esp + 0xc5c]
call fcn.100099c0
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
lea edi, [esp + 0x20]
lea esi, [esp + 0x18]
call fcn.1000bb80
push 0x208
lea ecx, [esp + 0x648]
push 0
push ecx
call fcn.10016010
add esp, 0x14
push 0x104
lea edx, [esp + 0x640]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x208
lea eax, [esp + 0x28]
push 0
push eax
call fcn.10016010
add esp, 0xc
cmp dword [esp + 0x10], 6
lea ebx, [esp + 0x24]
jb 0x10005235
movzx ecx, word [esp + 0x63c]
push ecx
push str._C:UsersDefaultAppDataLocaldefend
jmp 0x10005243
movzx edx, word [esp + 0x63c]
push edx
push str._C:Documents_and_SettingsDefault_UserLocal_Settingsdefend
mov ecx, 0x104
call fcn.100099c0
add esp, 8
lea eax, [esp + 0x24]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x208
lea ecx, [esp + 0x848]
push 0
push ecx
call fcn.10016010
add esp, 0xc
lea edx, [esp + 0xc54]
push edx
push str.txRepairaafe
lea eax, [esp + 0x2c]
push eax
push str._s_s_s.exe
mov ecx, 0x104
lea ebx, [esp + 0x854]
call fcn.100099c0
mov ecx, ebx
push ecx
call fcn.10004360
add esp, 0x14
test eax, eax
je 0x10005303
mov esi, ebx
call fcn.10004e60
mov dword [esp + 0xe70], 0xffffffff
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 0x100052dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xe68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe50]
xor ecx, esp
call fcn.10014422
mov esp, ebp
pop ebp
ret
mov dword [esp + 0xe70], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x100052d1