Function at 0x49cd80
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511f46
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x3c10
call fcn.004d35a0
mov eax, dword [0x565040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7f4], ecx
mov eax, dword [ebx + 0x14]
lea ecx, [ebp - 0x3c20]
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x7f8], esi
mov dword [eax], 1
mov dword [ebp - 0x800], edi
call fcn.00420f40
call fcn.0041c8c0
lea eax, [ebp - 0x3c20]
push eax
push edi
push esi
call fcn.00421250
test al, al
je 0x49d5ff
mov eax, dword [ebp - 0x3c18]
test eax, eax
jle 0x49d5ff
cmp eax, 1
jne 0x49cee7
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x3a14]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49ce41
sub ecx, edx
lea eax, [ebp - 0x3a14]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00416e10
cmp dword [ebp - 0x20], 0
je 0x49ceaa
cmp dword [ebp - 0x1c], 7
lea eax, [ebp - 0x30]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmova eax, dword [ebp - 0x30]
push 1
push 0
push 0
push eax
push 0x521e94
push 0
call esi
cmp eax, 0x20
ja 0x49ceaa
cmp dword [ebp - 0x1c], 7
lea eax, [ebp - 0x30]
push 1
cmova eax, dword [ebp - 0x30]
push 0
push eax
push 0x521ea0
push 0x521e94
push 0
call esi
mov ecx, dword [ebp - 0x1c]
cmp ecx, 7
jbe 0x49d34a
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x49d274
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49d621
jmp 0x49d274
cmp eax, 2
je 0x49d34a
cmp eax, 3
jne 0x49cf93
call fcn.0047a790
mov esi, eax
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x49cf2e
push 0x7c
call fcn.004d2c4b
mov dword [ebp - 0x7fc], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0047a180
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 4], ecx
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x7f8]
push eax
mov eax, dword [ebp - 0x7f4]
add eax, 0x248
push eax
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.004a09c0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x49d34a
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x49d34a
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x49cf83
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax]
mov eax, 1
jmp 0x49d601
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, 1
jmp 0x49d601
cmp eax, 4
jne 0x49d204
push str.LAYOUT:XML_DLG_WIKIPEDIA
lea ecx, [ebp - 0x438]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SHostDialog::constructor_wchar_t_const__]
mov dword [ebp - 4], 1
xorps xmm0, xmm0
mov eax, dword [ebp - 0x3212]
mov dword [ebp - 0x98], eax
xor eax, eax
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - method.SOUI::SDropDownWnd2.2.virtual_0], vtable.SOUI::SWikipediaDlg.3.0
mov dword [ebp - method.SOUI::SWikipediaDlg.2.virtual_0], vtable.SOUI::SWikipediaDlg.2.0
mov dword [ebp - method.SOUI::SQrCtrl.virtual_0], vtable.SOUI::SWikipediaDlg.0
mov dword [ebp - method.SOUI::SQrCtrl.1.virtual_0], vtable.SOUI::SWikipediaDlg.4.0
mov dword [ebp - method.SOUI::SWikipediaDlg.1.virtual_0], vtable.SOUI::SWikipediaDlg.1.0
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x94], 0
mov word [ebp - 0x90], ax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov byte [ebp - 4], 2
push 0x2c
movups xmmword [ebp - 0x74], xmm0
call fcn.004d2c4b
mov dword [ebp - 0x7fc], eax
add esp, 4
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0xa
mov dword [eax], vtable.SOUI::TObjRefImpl_class_SOUI::LvAdatperImpl_struct_SOUI::ILvAdapter__.0
mov dword [eax + 0x1c], 1
mov dword [eax], vtable.SOUI::SWikipediaHelpAdapter.0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x438]
mov esi, dword [ebp - 0x7f4]
push dword [esi + 0x248]
call fcn.004706f0
cmp eax, 1
je 0x49d0c6
xor esi, esi
jmp 0x49d16c
push ecx
mov ecx, esp
mov dword [ebp - 0x7fc], esp
push 0x521a28
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x7f8], esp
push 0x521a28
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x800], esp
push 0x521a28
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push 0
push 3
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x7f4], esp
push 0x532cb0
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov ecx, esp
mov byte [ebp - 4], 7
push 0x532348
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
lea ecx, [ebp - 0x7f0]
mov byte [ebp - 4], 3
call fcn.004710a0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x7f0]
push dword [esi + 0x248]
call fcn.004706f0
lea ecx, [ebp - 0x7f0]
mov esi, 1
call fcn.00471210
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x94]
mov dword [ebp - method.SOUI::SDropDownWnd2.2.virtual_0], vtable.SOUI::SWikipediaDlg.3.0
mov dword [ebp - method.SOUI::SWikipediaDlg.2.virtual_0], vtable.SOUI::SWikipediaDlg.2.0
mov dword [ebp - method.SOUI::SQrCtrl.virtual_0], vtable.SOUI::SWikipediaDlg.0
mov dword [ebp - method.SOUI::SQrCtrl.1.virtual_0], vtable.SOUI::SWikipediaDlg.4.0
mov dword [ebp - method.SOUI::SWikipediaDlg.1.virtual_0], vtable.SOUI::SWikipediaDlg.1.0
test ecx, ecx
je 0x49d1b4
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x8c]
call fcn.00415000
lea ecx, [ebp - 0x438]
mov dword [ebp - method.SOUI::SDropDownWnd2.2.virtual_0], vtable.SOUI::SMaskDialog.4.0
mov dword [ebp - method.SOUI::SMaskDialog.2.virtual_0], vtable.SOUI::SMaskDialog.2.0
mov dword [ebp - method.SOUI::SQrCtrl.virtual_0], vtable.SOUI::SMaskDialog.0
mov dword [ebp - method.SOUI::SQrCtrl.1.virtual_0], vtable.SOUI::SMaskDialog.1.0
mov dword [ebp - method.SOUI::SMaskDialog.3.virtual_0], vtable.SOUI::SMaskDialog.3.0
call dword [sym.imp.soui.dll_public_virtual:_void___thiscall_SOUI::SHostDialog::destructor_void_]
mov eax, esi
jmp 0x49d601
cmp eax, 5
jne 0x49d288
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x3a14]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49d227
sub ecx, edx
lea eax, [ebp - 0x3a14]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00416e10
cmp dword [ebp - 0x20], 0
je 0x49ceaa
cmp dword [ebp - 0x1c], 7
lea eax, [ebp - 0x30]
push 1
cmova eax, dword [ebp - 0x30]
push 0
push 0
push eax
push 0x521e94
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x49ceaa
push ecx
push edx
call fcn.004d2c11
add esp, 8
mov eax, 1
jmp 0x49d601
cmp eax, 6
jne 0x49d354
push str.LAYOUT:XML_DLG_LOL_SINICIZATION
lea ecx, [ebp - 0x7e0]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SHostDialog::constructor_wchar_t_const__]
mov dword [ebp - method.SOUI::SDropDownWnd2.2.virtual_0], 0x52d1dc
mov dword [ebp - 0x7dc], 0x52d3b4
mov dword [ebp - method.SOUI::SQrCtrl.virtual_0], 0x52d398
mov dword [ebp - method.SOUI::SQrCtrl.1.virtual_0], 0x52d4c4
mov dword [ebp - 0x5a4], 0x52d4b4
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x448], esi
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0x7e0]
mov eax, dword [ebp - 0x7f4]
push dword [eax + 0x248]
call fcn.004706f0
lea ecx, [ebp - 0x7e0]
mov dword [ebp - method.SOUI::SDropDownWnd2.2.virtual_0], vtable.SOUI::SMaskDialog.4.0
mov dword [ebp - method.SOUI::SMaskDialog.2.virtual_0], vtable.SOUI::SMaskDialog.2.0
mov dword [ebp - method.SOUI::SQrCtrl.virtual_0], vtable.SOUI::SMaskDialog.0
mov dword [ebp - method.SOUI::SQrCtrl.1.virtual_0], vtable.SOUI::SMaskDialog.1.0
mov dword [ebp - method.SOUI::SMaskDialog.3.virtual_0], vtable.SOUI::SMaskDialog.3.0
call dword [sym.imp.soui.dll_public_virtual:_void___thiscall_SOUI::SHostDialog::destructor_void_]
mov eax, 1
jmp 0x49d601
cmp eax, 7
jne 0x49d3ee
call fcn.00478d10
mov edi, eax
lea ecx, [edi + 0x23c]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::IsWindowVisible_void_const]
test eax, eax
jne 0x49d3ca
mov ecx, dword [0x57084c]
test ecx, ecx
jne 0x49d3a7
push 0xc
call fcn.004d2c4b
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
mov dword [0x57084c], ecx
mov dword [ecx], vtable.SOUI::SMantleCenter.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
cmp dword [ecx + 4], 0
je 0x49d3d6
mov eax, 1
lock xadd dword [ecx + 8], eax
inc eax
cmp eax, 1
jne 0x49d3d6
mov ecx, dword [ecx + 4]
push eax
push eax
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::SetVisible_int__int_]
jmp 0x49d3d6
lea ecx, [edi + 0x23c]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::IsWindowVisible_void_const]
push 5
push dword [edi + 0x248]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
jmp 0x49d601
mov eax, dword [ebp - 0x100a]
cmp eax, 1
jne 0x49d46f
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x1006]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49d417
sub ecx, edx
lea eax, [ebp - 0x1006]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00416e10
cmp dword [ebp - 0x20], 0
je 0x49ceaa
cmp dword [ebp - 0x1c], 7
lea eax, [ebp - 0x30]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmova eax, dword [ebp - 0x30]
push 1
push 0
push 0
push eax
push 0x521e94
push 0
call esi
cmp eax, 0x20
ja 0x49ceaa
jmp 0x49ce8c
cmp eax, 2
je 0x49d47d
cmp eax, 3
jne 0x49d34a
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x1006]
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x60], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49d4a0
sub ecx, edx
lea eax, [ebp - 0x1006]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.00416e10
mov dword [ebp - 4], 0xb
cmp dword [ebp - 0x50], 0
jne 0x49d4d3
xor esi, esi
jmp 0x49d5c5
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x34], 7
movups xmmword [ebp - 0x48], xmm0
mov word [ebp - 0x48], ax
mov dword [ebp - 0x1c], vtable.GamePicDownloadInfo.0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xd
push eax
push edi
push esi
call fcn.00485600
cmp dword [ebp - 0x34], 7
lea eax, [ebp - 0x48]
cmova eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49d559
sub esp, 0x28
mov ecx, esp
mov dword [ecx], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8CMainDlg_SOUI__AEXHH_ZPAV34_ABU___Ph__00_2_ABU___Ph__01_2__std__XHH_std__.0
mov dword [ecx + 0xc], eax
mov al, byte [ebp - 0x20]
mov dword [ecx + 8], 0x49c9d0
mov byte [ecx + 0x10], al
mov al, byte [ebp - 0x1f]
mov byte [ecx + 0x11], al
mov eax, dword [ebp - 0x7f4]
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x24], ecx
call fcn.0047e870
push edi
push esi
lea eax, [ebp - 0x60]
push eax
call fcn.004801d0
jmp 0x49d572
mov eax, dword [ebp - 0x7f4]
push edi
push esi
push 0x8b4
push dword [eax + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0x34]
mov esi, 1
cmp ecx, 7
jbe 0x49d5b1
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x49d5a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49d621
push ecx
push edx
call fcn.004d2c11
add esp, 8
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov ecx, dword [ebp - 0x4c]
cmp ecx, 7
jbe 0x49d5fb
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x49d5f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49d621
push ecx
push edx
call fcn.004d2c11
add esp, 8
mov eax, esi
jmp 0x49d601
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d2bfe
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.004e23ec
int3