Function at 0x10016340
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10153db4
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x101c0618]
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 esi, ecx
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.10067770
add esp, 8
push dword [ebp - 0x254]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
jne 0x100163b5
push dword [ebp - 0x254]
push str.CIconBubbleWnd::_LaunchGameBox__exe_not_exist__s
call fcn.1004a150
add esp, 8
xor edi, edi
jmp 0x1001679a
push 1
push dword [ebp - 0x254]
call fcn.100440d0
add esp, 8
test eax, eax
jne 0x100163e3
push dword [ebp - 0x254]
push str.CIconBubbleWnd::_LaunchGameBox__exe_no_sign__s
call fcn.1004a150
add esp, 8
xor edi, edi
jmp 0x1001679a
call fcn.10039020
mov edi, eax
mov dword [ebp - 0x268], edi
push dword [esi + 0x134]
mov byte [ebp - 4], 1
push 0x10173e6c
push edi
call fcn.1003b470
push dword [esi + 0x12c]
lea eax, [ebp - 0x258]
push eax
call fcn.10050ce0
push dword [eax]
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 2
push eax
call fcn.10037dc0
push dword [eax]
call fcn.10039050
push eax
push str.game_name
push edi
call fcn.10038c50
mov edx, dword [ebp - 0x25c]
add esp, 0x2c
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001645c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x258]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001647d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push str.needlogin
push edi
call fcn.1003b3b0
push 0x10173e88
call fcn.10039050
push eax
push str.tab_type
push edi
call fcn.10038c50
push 0
push str.inst_bubble
push 0x10173eb4
push edi
call fcn.1003b400
call fcn.10039020
mov esi, eax
mov dword [ebp - 0x270], esi
push 0x10173ebc
mov byte [ebp - 4], 3
call fcn.10039050
push eax
push 0x10173ec4
push esi
call fcn.10038c50
push 0
push str.inst_bubble
push 0x10173eb4
push esi
call fcn.1003b400
add esp, 0x4c
push edi
push str.args
push esi
call fcn.10038c50
lea eax, [ebp - 0x260]
mov dword [ebp - 0x268], 0
push esi
push eax
call fcn.1003b220
add esp, 0x14
mov eax, dword [ebp - 0x260]
mov byte [ebp - 4], 4
cmp dword [eax - 0xc], 0
jne 0x10016538
push str.CIconBubbleWnd::_LaunchGameBox__print_json_failed.
call fcn.1004a150
add esp, 4
xor edi, edi
jmp 0x1001676c
push dword [0x101bfe94]
lea ecx, [ebp - 0x25c]
call fcn.1000b130
push 1
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.100434a0
add esp, 0xc
mov edx, dword [ebp - 0x25c]
mov eax, ebx
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10016586
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1000c0e0
mov ecx, eax
test ecx, ecx
je 0x100167da
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x258], eax
push dword [0x101bfe98]
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 8
push dword [ebp - 0x264]
push str._s_s_inst_bubble_opentab_cmd.json
push eax
call fcn.10012500
add esp, 0x10
lea ecx, [ebp - 0x24c]
push dword [ebp - 0x260]
call fcn.1000b300
mov edi, dword [ebp - 0x258]
lea ecx, [ebp - 0x234]
push edi
mov byte [ebp - 4], 9
call fcn.100137c0
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.10046790
add esp, 8
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x234]
call fcn.1000dfa0
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 8
call fcn.1000b580
mov eax, dword [ebp - 0x250]
test eax, eax
jg 0x10016649
neg eax
push eax
push str.CIconBubbleWnd::_LaunchGameBox__write_file_failed__error_d
call fcn.1004a150
add esp, 8
xor edi, edi
jmp 0x1001672a
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.100ec480
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea ecx, [ebp - 0x250]
call fcn.1000c820
push str.inst_bubble
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x250]
push str.___general_cmd_s___from_s
push eax
call fcn.1000efe0
mov edi, dword [ebp - 0x250]
push 0
push 0
push 0
push 0
push 0
push 5
push edi
push dword [ebp - 0x254]
call fcn.1004eaf0
add esp, 0x30
test eax, eax
jne 0x100166ff
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.1004d4a0
push dword [eax]
mov byte [ebp - 4], 0xc
push edi
push dword [ebp - 0x254]
push str.CIconBubbleWnd::_LaunchGameBox__RunAppAsAdmin__s__s__failed___s
call fcn.1004a150
add esp, 0x18
lea ecx, [ebp - 0x26c]
call fcn.1000b560
xor eax, eax
mov dword [ebp - 0x250], eax
jmp 0x10016709
mov dword [ebp - 0x250], 1
mov byte [ebp - 4], 8
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10016724
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x250]
mov edx, dword [ebp - 0x258]
mov eax, ebx
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001674b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x264]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001676c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x260]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001678d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1001679a
push esi
call fcn.100391e0
add esp, 4
mov eax, dword [ebp - 0x254]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100167bc
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.100b4568
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10007270
int3