Function at 0x4358f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ecd7a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5304cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x435c5c
mov edi, dword [ebp + 8]
mov ecx, edx
add edi, 4
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x435933
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00407830
push 0x4f8944
push 0x4ff3b4
mov ecx, edi
call fcn.00412880
mov ecx, dword [edi]
mov esi, dword [ecx - 0xc]
cmp esi, 1
jg 0x435977
lea eax, [ecx - 0x10]
push eax
call fcn.00407f50
add esp, 4
add eax, 0x10
jmp 0x4359aa
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x435987
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x435993
call fcn.00408990
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
mov eax, dword [edi]
lea ecx, [ebp + 0xc]
push 1
lea eax, [eax + esi*2]
add eax, 0xfffffffe
push eax
call fcn.0040dc80
mov eax, dword [ebp + 0xc]
mov edx, 0x4f8944
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x4359dc
test si, si
je 0x4359d3
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4359dc
add ecx, 4
add edx, 4
test si, si
jne 0x4359b1
mov dword [ebp + 0xc], 0
jmp 0x4359e4
sbb ecx, ecx
or ecx, 1
mov dword [ebp + 0xc], ecx
or esi, 0xffffffff
lea edx, [eax - 0x10]
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4359fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0xc], 0
mov ebx, 4
jne 0x435a97
mov edx, dword [edi]
xor esi, esi
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
test eax, eax
cmovns esi, eax
cmp esi, ecx
jl 0x435a34
lea eax, [edx - 0x10]
push eax
call fcn.00407f50
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
jmp 0x435a5f
mov ecx, dword [edx - 0x10]
test ecx, ecx
je 0x435a44
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x435a50
call fcn.00408990
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push esi
push dword [edi]
lea ecx, [ebp + 0xc]
call fcn.0040dc80
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.0040e230
lea edx, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
or esi, 0xffffffff
mov ebx, 0xc
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x435a97
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call fcn.00443c80
add esp, 4
test eax, eax
jne 0x435c19
push 0x4ff3b8
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.00434430
add esp, 0xc
push dword [eax]
or ebx, 1
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x435af8
push str.360wpapp.exe
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00434430
add esp, 0xc
or ebx, 2
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp + 0xf], 0
test eax, eax
je 0x435afc
mov byte [ebp + 0xf], 1
test bl, 2
je 0x435b21
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x435b21
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
and ebx, 0xfffffffe
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 0x10], ebx
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x435b48
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xf], 0
jne 0x435c19
push 0x4f8944
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00434430
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 2
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x435b86
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x435b9c
call fcn.00408990
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x435c70
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x18]
add eax, 0x10
mov dword [ebp + 0xc], eax
or ebx, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov ecx, dword [ecx]
mov eax, dword [eax + 0x250]
push dword [eax - 0xc]
push eax
push dword [ecx - 0xc]
lea eax, [ebp + 0xc]
push ecx
push eax
call fcn.00434910
add esp, 0x14
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0040e230
mov edx, dword [ebp + 0xc]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x435bf8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, esi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x435c19
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str._bizhi_setup.log
lea eax, [ebp + 8]
push edi
push eax
call fcn.00434430
add esp, 0xc
push eax
mov ecx, 0x533d84
mov dword [ebp - 4], 4
call fcn.004372c0
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x435c5c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004060d0
int3