Function at 0x50ca50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567505
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x5df7e4]
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, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x17c], eax
push 0x56c124
call fcn.004c1030
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
xor eax, eax
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
call fcn.004b98f0
mov ecx, eax
test ecx, ecx
je 0x50d007
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x164], eax
mov byte [ebp - 4], 1
mov eax, 0x5bd23c
lea ecx, [ebp - 0x164]
test eax, 0xffff0000
jne 0x50cb06
movzx eax, ax
push eax
call fcn.004bb960
jmp 0x50cb12
push 0
push 0x5bd23c
call fcn.004bbc70
mov byte [ebp - 4], 2
call fcn.004b98f0
mov ecx, eax
test ecx, ecx
je 0x50d011
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x16c], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x16d]
call fcn.00509be0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x16c]
push ecx
lea ecx, [ebp - 0x164]
push ecx
mov ecx, eax
call fcn.00509d10
mov bl, al
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x16d]
call fcn.00509c40
test bl, bl
jne 0x50cba6
push 0x56c128
call fcn.004c1030
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x16c]
add edx, 0xfffffff0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50cba1
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
jmp 0x50cfbb
call fcn.004b98f0
mov ecx, eax
test ecx, ecx
je 0x50d01b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x168], eax
mov byte [ebp - 4], 8
mov eax, str.wwcmd.exe
lea ecx, [ebp - 0x168]
test eax, 0xffff0000
jne 0x50cbe4
movzx eax, ax
push eax
call fcn.004bb960
jmp 0x50cbf0
push 9
push str.wwcmd.exe
call fcn.004bbc70
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x168]
test eax, eax
je 0x50cf76
mov ecx, dword [ebp - 0x164]
cmp dword [ecx - 0xc], 0
jl 0x50cf76
push eax
push ecx
call fcn.005290ec
add esp, 8
test eax, eax
je 0x50cf76
sub eax, dword [ebp - 0x164]
sar eax, 1
js 0x50cf76
push eax
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp - 0x164]
call fcn.004babf0
mov byte [ebp - 4], 0xd
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50cc50
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.004bb7b0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x174]
add edx, 0xfffffff0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50cc8d
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push str.preload.config
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004bc220
add esp, 0xc
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
cmovae eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x50cd1c
push str.configfile_no_exits
call fcn.004c1030
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x5c]
call fcn.004bb2a0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x168]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50ccf6
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x16c]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50cd17
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
jmp 0x50cfbb
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 0x13
mov byte [ebp - 4], 0x14
push 0x56c1a8
call fcn.004c1030
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
cmovae eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x44]
push ecx
push eax
call fcn.004c1a70
add esp, 0xc
cmp dword [ebp - 0x34], 0
jne 0x50cdc3
push 0x56c1ac
call fcn.004c1030
add esp, 4
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x44]
call fcn.004c02e0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x5c]
call fcn.004bb2a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x168]
call fcn.004badd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x16c]
call fcn.004badd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x164]
call fcn.004badd0
jmp 0x50cfda
lea ecx, [ebp - 0x19c]
call fcn.004c0060
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004be1f0
add esp, 8
test al, al
jne 0x50ce0e
push str.GetWWPreloadConfig_JsonStringToClass_failed
call fcn.004c1030
add esp, 4
mov byte [ebp - 4], 0x16
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x18c]
call fcn.004bb6b0
jmp 0x50cd79
lea eax, [ebp - 0x18c]
push eax
mov ecx, edi
call fcn.004c0420
mov eax, dword [ebp - 0x19c]
mov ecx, dword [ebp - 0x178]
mov dword [ecx], eax
mov eax, dword [ebp - 0x198]
mov ecx, dword [ebp - 0x17c]
mov dword [ecx], eax
push dword [ebp - 0x190]
push dword [ebp - 0x194]
call fcn.004c0dc0
add esp, 8
test al, al
jne 0x50ce75
push str.notEnablePreFetch
call fcn.004c1030
add esp, 4
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x18c]
call fcn.004bb6b0
jmp 0x50cd79
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x18c]
call fcn.004bb6b0
mov dword [ebp - 4], 0x13
push 0x56c288
call fcn.004c1030
add esp, 4
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x44]
call fcn.004c02e0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x5c]
call fcn.004bb2a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x168]
call fcn.004badd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x16c]
call fcn.004badd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x164]
call fcn.004badd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004bb2a0
mov al, 1
jmp 0x50cfeb
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x168]
add edx, 0xfffffff0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50cf9a
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x16c]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50cfbb
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x164]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x50cfda
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004bb2a0
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 - 0x14]
xor ecx, ebp
call fcn.005121be
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004b95c0
push 0x80004005
call fcn.004b95c0
push 0x80004005
call fcn.004b95c0
int3