Function at 0x48c140
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db156
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x22c], ebx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48c19f
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x224]
call fcn.0041c970
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.004434c0
xor edi, edi
or ebx, 0xffffffff
push dword [edi + 0x4ec608]
lea ecx, [ebp - 0x228]
call fcn.0041c970
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x228]
mov esi, dword [eax - 0xc]
test esi, esi
js 0x48c3d4
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x48c20b
push esi
lea ecx, [ebp - 0x228]
call fcn.0041cb60
mov eax, dword [ebp - 0x228]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.004b23cd
mov eax, dword [ebp - 0x228]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x48c3d4
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x228]
mov word [eax + esi*2], cx
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x48c270
mov ecx, dword [ebp - 0x224]
cmp dword [ecx - 0xc], 0
jl 0x48c270
push eax
push ecx
call fcn.004a81de
add esp, 8
test eax, eax
je 0x48c26a
sub eax, dword [ebp - 0x224]
sar eax, 1
test eax, eax
jg 0x48c37b
mov eax, dword [ebp - 0x228]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48c28b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, 0x7c
jb 0x48c1c2
mov esi, dword [ebp - 0x22c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x48c3a6
push esi
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x48c3a6
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004a8960
add esp, 0xc
lea edx, [ebp - 0x220]
mov ecx, esi
push 0
push 0
call fcn.0048bcb0
add esp, 8
test eax, eax
je 0x48c3a6
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48c2f6
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.0041ccd0
lea ecx, [ebp - 0x224]
call fcn.004434c0
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], 0
jl 0x48c3a2
push 0x4f2d2c
push eax
call fcn.004a81de
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x224]
test ecx, ecx
je 0x48c351
sub ecx, eax
sar ecx, 1
test ecx, ecx
jg 0x48c3a2
cmp dword [eax - 0xc], 0
jl 0x48c3a2
push str.TENCENT
push eax
call fcn.004a81de
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x48c39c
mov eax, dword [ebp - 0x224]
sub ecx, eax
sar ecx, 1
je 0x48c3ac
mov bl, 1
jmp 0x48c3ae
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48c39c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
mov bl, 1
jmp 0x48c3ae
mov eax, dword [ebp - 0x224]
xor bl, bl
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x48c3cd
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
jmp 0x48c183
push 0x80070057
call fcn.0041cdf0
int3