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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576366
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x13e4
call fcn.004b0ed0
mov eax, dword [0x5dccb4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x13e4], edi
mov dword [ebp - 0x13f0], edi
call fcn.00435360
mov ecx, eax
call fcn.00435320
push dword [ebp - 0x13f0]
lea ecx, [ebp - 0x13e0]
mov dword [ebp - 0x13e0], 0
push eax
mov dword [ebp - 0x13dc], 0
call fcn.0042d320
mov eax, dword [ebp - 0x13e0]
mov dword [edi + 4], eax
mov esi, dword [edi + 8]
mov eax, dword [ebp - 0x13dc]
mov dword [edi + 8], eax
or edi, 0xffffffff
test esi, esi
je 0x47aa71
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x47aa71
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x47aa71
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x13e4]
cmp dword [eax + 4], 0
jne 0x47aa84
xor eax, eax
jmp 0x47ae08
call fcn.0042e350
mov ecx, eax
test ecx, ecx
je 0x47ae24
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x13ec], eax
mov dword [ebp - 4], 0
push 0
mov byte [ebp - 4], 1
call fcn.00546884
mov dword [ebp - 0x13e0], eax
lea eax, [ebp - 0x13e0]
push eax
lea eax, [ebp - 0x1348]
mov dword [ebp - 0x13dc], edx
push eax
call fcn.0054a636
test eax, eax
mov ecx, edi
lea eax, [ebp - 0x13e0]
cmove ecx, dword [ebp - 0x1344]
push eax
lea eax, [ebp - 0x136c]
mov dword [ebp - 0x13e8], ecx
push eax
call fcn.0054a636
test eax, eax
lea eax, [ebp - 0x13e0]
push eax
cmove edi, dword [ebp - 0x1364]
lea eax, [ebp - 0x1390]
push eax
call fcn.0054a636
xor ecx, ecx
test eax, eax
lea eax, [ebp - 0x13e0]
cmove ecx, dword [ebp - 0x1384]
push eax
lea eax, [ebp - 0x13b4]
mov dword [ebp - 0x13f4], ecx
push eax
call fcn.0054a636
add esp, 0x24
test eax, eax
jne 0x47ab48
mov esi, dword [ebp - 0x13a4]
inc esi
jmp 0x47ab4a
xor esi, esi
lea eax, [ebp - 0x13e0]
push eax
lea eax, [ebp - 0x13d8]
push eax
call fcn.0054a636
add esp, 8
test eax, eax
jne 0x47ab71
mov eax, dword [ebp - 0x13c4]
add eax, 0x76c
jmp 0x47ab73
xor eax, eax
push dword [ebp - 0x13e8]
push edi
push dword [ebp - 0x13f4]
push esi
push eax
lea eax, [ebp - 0x13ec]
push 0x59af00
push eax
call fcn.0040b270
add esp, 0x1c
jmp 0x47abaa
mov dword [ebp - 4], 0
call fcn.0042e350
mov ecx, eax
test ecx, ecx
je 0x47ae2e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x13e8], eax
mov edi, dword [ebp - 0x13ec]
lea eax, [ebp - 0x13e8]
push edi
push str.http:__ini.update.360safe.com_lds_update_patch.cab
push str._s_t_s
push eax
mov byte [ebp - 4], 3
call fcn.0040b270
push 0x800
lea eax, [ebp - 0x1314]
push 0
push eax
call fcn.00516300
push 0x800
lea eax, [ebp - 0xb14]
push 0
push eax
call fcn.00516300
add esp, 0x28
lea eax, [ebp - 0x1314]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xfe
lea eax, [ebp - 0x112]
push 0
push eax
call fcn.00516300
add esp, 0xc
xor esi, esi
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x114], ax
lea eax, [ebp - 0x1324]
push eax
movups xmmword [ebp - 0x1324], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [ebp - 0x314]
push 0
push eax
call fcn.00516300
movzx eax, byte [ebp - 0x1315]
push eax
movzx eax, byte [ebp - 0x1316]
push eax
movzx eax, byte [ebp - 0x1317]
push eax
movzx eax, byte [ebp - 0x1318]
push eax
movzx eax, byte [ebp - 0x1319]
push eax
movzx eax, byte [ebp - 0x131a]
push eax
movzx eax, byte [ebp - 0x131b]
push eax
movzx eax, byte [ebp - 0x131c]
push eax
movzx eax, word [ebp - 0x131e]
push eax
movzx eax, word [ebp - 0x1320]
push eax
push dword [ebp - 0x1324]
lea eax, [ebp - 0x314]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.0040f310
lea eax, [ebp - 0x314]
add esp, 0x40
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47acf0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x114]
push 0x80
push eax
call fcn.00541ddd
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x1314]
push eax
lea eax, [ebp - 0xb14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str..tmp
lea eax, [ebp - 0xb14]
push 0x400
push eax
call fcn.00541bd7
add esp, 0xc
lea eax, [ebp - 0xb14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47ad72
inc esi
cmp esi, 0xa
jl 0x47ac44
mov esi, dword [ebp - 0x13e4]
jmp 0x47ada5
lea ecx, [ebp - 0xb14]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ad80
mov esi, dword [ebp - 0x13e4]
lea eax, [ebp - 0xb14]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0xc]
call fcn.0040da40
mov ecx, dword [esi + 4]
push dword [esi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [esi + 4]
push esi
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esi + 4]
mov esi, dword [ebp - 0x13e8]
push esi
push 0
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47ade7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x47ae03
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b0a78
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040af40
push 0x80004005
call fcn.0040af40
int3