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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c676
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x100cb2bc]
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, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
test esi, esi
jne 0x10024475
mov eax, 1
jmp 0x100246d5
cmp word [esi], 0
je 0x1002446b
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10024480
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x1002446b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100244ac
mov eax, 2
jmp 0x100246d5
cmp dword [ebp + 0x14], 0
je 0x1002458c
push ebx
push esi
call fcn.100530f0
add esp, 8
test eax, eax
jne 0x1002458c
call fcn.10042a90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10024582
push 0x2e
push str.d:work_basic_mgamejs_basicjs_basicutils.cc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.100065f0
push 3
push 0x100a38bc
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.100065f0
mov byte [ebp - 4], 1
call fcn.10042a90
mov edi, eax
lea ecx, [ebp - 0x110]
push 0xf2
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10003990
mov esi, eax
push str.CheckDigitalSign_Failed
push esi
mov byte [ebp - 4], 2
call fcn.1000a1f0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x110]
call fcn.10004ba0
lea ecx, [ebp - 0x28]
call fcn.10004360
lea ecx, [ebp - 0x40]
call fcn.10004360
mov eax, 3
jmp 0x100246d5
lea ecx, [ebp - 0x74]
call fcn.100261e0
push edi
push esi
lea eax, [ebp - 0x74]
mov dword [ebp - 4], 3
push str.__s___s
push eax
call fcn.1000b010
add esp, 0x10
cmp dword [ebp + 0x1c], 0
je 0x100245e9
mov eax, dword [ebp - 0x74]
cmp dword [eax - 4], 1
jle 0x100245cb
push dword [eax - 0xc]
lea ecx, [ebp - 0x74]
call fcn.1000af90
mov eax, dword [ebp - 0x74]
push 0
push 0
push 0
push 0
push 0xa
push eax
call fcn.100265f0
add esp, 0x18
test eax, eax
je 0x100245e9
xor ebx, ebx
jmp 0x100246cb
push 0xa
push 0
push edi
push esi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
mov dword [ebp - 0x78], eax
cmp eax, 0x20
setg bl
call fcn.10042a90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x100246c5
push 0x2e
push str.d:work_basic_mgamejs_basicjs_basicutils.cc
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], al
call fcn.100065f0
push 3
push 0x100a38bc
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.100065f0
mov byte [ebp - 4], 5
call fcn.10042a90
mov edi, eax
lea ecx, [ebp - 0x1a8]
push 0x102
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10003990
mov esi, eax
push str.ShellExecuteW_return_value:
push esi
mov byte [ebp - 4], 6
call fcn.10004a70
add esp, 8
mov ecx, esi
push dword [ebp - 0x78]
call fcn.100047e0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x1a8]
call fcn.10004ba0
lea ecx, [ebp - 0x58]
call fcn.10004360
lea ecx, [ebp - 0x70]
call fcn.10004360
xor ebx, 1
shl ebx, 2
lea ecx, [ebp - 0x74]
call fcn.1000abe0
mov eax, ebx
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.10051a36
mov esp, ebp
pop ebp
ret