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

Disassembly:
push 0xffffffffffffffff
push 0x514541
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x2c], edi
call fcn.004c01dc
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x49709b
push 0x80004005
call fcn.00401ff0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [esp + 0x60]
add eax, 0x10
mov dword [ecx], eax
mov dword [esp + 0x58], edi
mov ebx, 1
mov dword [esp + 0x2c], ebx
call fcn.004c01dc
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4970d4
push 0x80004005
call fcn.00401ff0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x58], ebx
call fcn.004c01dc
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497102
push 0x80004005
call fcn.00401ff0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x58], 2
call fcn.0049ede9
lea ecx, [esp + 0x24]
push ecx
test eax, eax
je 0x497134
call fcn.0049e4ac
add esp, 4
mov byte [esp + 0x58], 3
jmp 0x497141
call fcn.0049e411
add esp, 4
mov byte [esp + 0x58], 4
push eax
lea ecx, [esp + 0x20]
call fcn.00403060
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x497170
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
cmp eax, edi
jle 0x497193
push 0x22
push esi
call fcn.004e0f9e
add esp, 8
cmp eax, edi
je 0x497193
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x4971a3
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00403060
jmp 0x4971e7
inc eax
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
call fcn.00402750
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 5
call fcn.00403060
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4971e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 0xc]
cmp eax, edi
jle 0x497251
push 0x22
push esi
call fcn.004e0f9e
add esp, 8
cmp eax, edi
je 0x497251
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x497251
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x20]
call fcn.00402800
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 6
call fcn.00403060
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49724d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
push esi
mov dword [esp + 0x34], esi
call fcn.00403680
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x24], esi
mov byte [esp + 0x58], 7
cmp dword [esi - 4], ebx
jle 0x497283
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x28]
call fcn.00403270
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
mov eax, dword [esi - 8]
setne dl
push eax
push esi
mov ebp, edx
call fcn.004df755
add esp, 8
cmp eax, edi
jl 0x497747
cmp eax, dword [esi - 8]
jg 0x497747
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [esi - 0x10]
mov byte [esp + 0x58], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4972dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, edi
je 0x4972f2
mov edi, dword [esp + 0x60]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00403060
jmp 0x497349
lea edx, [esp + 0x24]
push 0x26
push edx
call fcn.0049ed16
add esp, 8
mov byte [esp + 0x58], 8
mov esi, dword [esp + 0x60]
push eax
mov ecx, esi
call fcn.00403060
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497337
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x1f
push str.Internet_Exploreriexplore.exe
mov ecx, esi
call fcn.004030e0
mov edi, dword [esp + 0x60]
mov ebx, 0xa
push ebx
lea ecx, [esp + 0x38]
call fcn.004c05f4
push str.chromeplus_applicationchrome.exe
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 9
call fcn.004c087f
push 7
push 0x533668
mov ecx, eax
call fcn.00403570
push str.115chrome.exe
lea ecx, [esp + 0x38]
call fcn.004c087f
push 6
push 0x5336bc
mov ecx, eax
call fcn.00403570
push 0x53348c
lea ecx, [esp + 0x38]
call fcn.004c087f
push 0xd
push str.Google_Chrome
mov ecx, eax
call fcn.00403570
push str.sogouexplorer.exe
lea ecx, [esp + 0x38]
call fcn.004c087f
push 7
push 0x5336e8
mov ecx, eax
call fcn.00403570
push str.qqbrowser.exe
lea ecx, [esp + 0x38]
call fcn.004c087f
push 5
push 0x5336f8
mov ecx, eax
call fcn.00403570
push str.2345explorer.exe
lea ecx, [esp + 0x38]
call fcn.004c087f
push 9
push str.2345
mov ecx, eax
call fcn.00403570
push str.liebao.exe
lea ecx, [esp + 0x38]
call fcn.004c087f
push 7
push 0x533718
mov ecx, eax
call fcn.00403570
push str.maxthon.exe
lea ecx, [esp + 0x38]
call fcn.004c087f
push 6
push 0x533728
mov ecx, eax
call fcn.00403570
push str.firefox.exe
lea ecx, [esp + 0x38]
call fcn.004c087f
push 0xf
push str.Mozilla_Firefox
mov ecx, eax
call fcn.00403570
push 0x522a34
lea ecx, [esp + 0x38]
call fcn.004c087f
push 0x11
push str.Internet_Explorer
mov ecx, eax
call fcn.00403570
push str.baidubrowser.exe
lea ecx, [esp + 0x38]
call fcn.004c087f
push 5
push 0x533758
mov ecx, eax
call fcn.00403570
push str.360se.exe
lea ecx, [esp + 0x38]
call fcn.004c087f
push 8
push str.360
mov ecx, eax
call fcn.00403570
push str.theworld.exe
lea ecx, [esp + 0x38]
call fcn.004c087f
push 4
push 0x533778
mov ecx, eax
call fcn.00403570
push str.launcher.exe
lea ecx, [esp + 0x38]
call fcn.004c087f
push 5
push str.Opera
mov ecx, eax
call fcn.00403570
push str.ruiying.exe
lea ecx, [esp + 0x38]
call fcn.004c087f
push 5
push str.tq_OmhV
mov ecx, eax
call fcn.00403570
push str.taobrowser.exe
lea ecx, [esp + 0x38]
call fcn.004c087f
push 5
push 0x53379c
mov ecx, eax
call fcn.00403570
push str.safari.exe
lea ecx, [esp + 0x38]
call fcn.004c087f
push 6
push str.Safari
mov ecx, eax
call fcn.00403570
push str.ttraveler.exe
lea ecx, [esp + 0x38]
call fcn.004c087f
push 4
push 0x5337b8
mov ecx, eax
call fcn.00403570
push str.xskywalker.exe
lea ecx, [esp + 0x38]
call fcn.004c087f
push ebx
push str.XSkyWalker
mov ecx, eax
call fcn.00403570
call fcn.004026f0
mov eax, dword [esp + 0x40]
neg eax
sbb eax, eax
mov dword [esp + 0x28], eax
je 0x4976c4
call fcn.004c01dc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x497091
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x58], bl
call fcn.004c01dc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x497091
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x64], 0xb
call fcn.004c0730
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x497617
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x497617
push ecx
push eax
call fcn.004dfd90
add esp, 8
test eax, eax
je 0x497617
sub eax, dword [edi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x49766d
mov byte [esp + 0x58], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49763b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 9
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497660
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x28], 0
jne 0x497587
jmp 0x4976c4
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x68]
call fcn.00403060
mov byte [esp + 0x58], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49769f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 9
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4976c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx]
cmp dword [edx - 0xc], 0
jne 0x4976dc
push 4
push 0x5337dc
call fcn.00403570
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 2
call fcn.004c0725
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49770f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
mov byte [esp + 0x58], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497731
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
push 0x80070057
call fcn.00401ff0
int3