Function at 0x474430
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5985ed
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [esp + 0x14], esi
cmp dword [edi], esi
jne 0x4744f3
call fcn.0047f920
cmp eax, esi
mov dword [esp + 0x138], esi
je 0x4744c0
mov eax, dword [eax + 0x24]
cmp eax, 4
jg 0x4744c0
push 4
push str.kybox::parameters::qipai_valid::_CheckQipaiValid
push 0xd5
push str.e:kingsoft_duba_build_build_srckisenginekis_2016_released_sp5.5_1339_fbkis_srckvip_srckyboxglobal.h
lea eax, [esp + 0x40]
push eax
call fcn.0047f220
mov ebx, 1
push 0x5b04a4
mov byte [esp + 0x13c], bl
push eax
mov dword [esp + 0x1c], ebx
call fcn.0047f6e0
add esp, 8
jmp 0x4744c5
mov ebx, 1
mov dword [esp + 0x138], esi
test byte [esp + 0x14], bl
je 0x4744dc
lea ecx, [esp + 0x30]
push ecx
call fcn.0047eb40
mov eax, dword [0x5f9180]
cmp eax, esi
je 0x4744ec
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
jmp 0x4748a2
lea edx, [esp + 0x18]
push edx
mov ecx, str.QIPAI.Show
call fcn.00481430
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + 0x70]
push ecx
lea edx, [edi + 4]
mov ebx, 2
push edx
mov dword [esp + 0x144], ebx
call fcn.004790d0
or ebp, 0xffffffff
mov esi, eax
mov dword [esp + 0x138], ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47454b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 1
je 0x4745d6
call fcn.0047f920
test eax, eax
mov esi, 3
mov dword [esp + 0x138], esi
je 0x4745a4
cmp dword [eax + 0x24], 1
jg 0x4745a4
push 1
push str.kybox::parameters::qipai_valid::_CheckQipaiValid
push 0xdd
push str.e:kingsoft_duba_build_build_srckisenginekis_2016_released_sp5.5_1339_fbkis_srckvip_srckyboxglobal.h
lea ecx, [esp + 0x40]
push ecx
call fcn.0047f220
push 0x5b0544
mov byte [esp + 0x13c], 4
push eax
mov dword [esp + 0x1c], ebx
call fcn.0047f6e0
add esp, 8
mov dword [esp + 0x138], esi
test byte [esp + 0x14], bl
je 0x4745bb
lea edx, [esp + 0x30]
push edx
call fcn.0047eb40
mov eax, dword [0x5f9180]
test eax, eax
je 0x4744ec
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
jmp 0x4748a2
lea eax, [esp + 0x20]
push eax
mov ecx, 0x5adcfc
call fcn.00481430
lea ecx, [esp + 0x24]
push ecx
mov ecx, str.QIPAI.SetupFile
mov dword [esp + 0x13c], 5
call fcn.00481430
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
lea esi, [esp + 0x20]
mov byte [esp + 0x13c], 6
call fcn.00479090
mov byte [esp + 0x138], 8
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474640
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x138], 9
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474667
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x138], 0xa
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
je 0x474720
lea edx, [esp + 0x28]
push edx
call fcn.0047bc80
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
mov ebx, eax
mov byte [esp + 0x140], 0xb
call fcn.00478fd0
add esp, 8
lea edi, [esp + 0x18]
mov byte [esp + 0x138], 0xc
call fcn.00480f90
mov byte [esp + 0x138], 0xb
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4746f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x138], 0xa
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47471c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], 0
je 0x4747d4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4747d4
call fcn.0047f920
test eax, eax
mov ebx, 0xf
mov byte [esp + 0x138], bl
je 0x474790
cmp dword [eax + 0x24], 1
jg 0x474790
push 1
push str.kybox::parameters::qipai_valid::_CheckQipaiValid
push 0xef
push str.e:kingsoft_duba_build_build_srckisenginekis_2016_released_sp5.5_1339_fbkis_srckvip_srckyboxglobal.h
lea ecx, [esp + 0xc0]
push ecx
call fcn.0047f220
push 0x5b0588
mov byte [esp + 0x13c], 0x10
push eax
mov dword [esp + 0x1c], 8
call fcn.0047f6e0
add esp, 8
mov dword [esp + 0x138], ebx
test byte [esp + 0x14], 8
je 0x4747ab
lea edx, [esp + 0xb0]
push edx
call fcn.0047eb40
mov eax, dword [0x5f9180]
test eax, eax
je 0x4747bb
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [esp + 0x18]
call fcn.004818c0
lea ecx, [esp + 0x1c]
call fcn.004818c0
xor eax, eax
jmp 0x4748a2
call fcn.0047f920
test eax, eax
mov ebx, 0xd
mov byte [esp + 0x138], bl
je 0x47482b
cmp dword [eax + 0x24], 1
jg 0x47482b
push 1
push str.kybox::parameters::qipai_valid::_CheckQipaiValid
push 0xea
push str.e:kingsoft_duba_build_build_srckisenginekis_2016_released_sp5.5_1339_fbkis_srckvip_srckyboxglobal.h
lea eax, [esp + 0xc0]
push eax
call fcn.0047f220
push 0x5b0578
mov byte [esp + 0x13c], 0xe
push eax
mov dword [esp + 0x1c], 4
call fcn.0047f6e0
add esp, 8
mov dword [esp + 0x138], ebx
test byte [esp + 0x14], 4
je 0x474846
lea ecx, [esp + 0xb0]
push ecx
call fcn.0047eb40
mov eax, dword [0x5f9180]
test eax, eax
je 0x474856
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [esi - 0x10]
mov byte [esp + 0x138], 9
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x474879
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x138], ebp
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x47489d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret