Function at 0x407e20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4baa4d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4f4164]
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 ebx, ecx
mov dword [ebp - 0x30], ebx
mov esi, dword [0x4fa644]
lea edi, [ebx + 0x18]
mov eax, dword [edi]
mov dword [ebp - 0x38], eax
test esi, esi
jne 0x407ecd
push str.sciter.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x407ebc
push str.SciterAPI
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x407eb2
mov ecx, ebx
call dword [0x4c758c]
call ebx
mov dword [0x4fa644], eax
mov esi, dword [eax + 0x26c]
mov ecx, esi
call dword [0x4c758c]
call esi
mov ebx, dword [ebp - 0x30]
test eax, eax
je 0x407ebc
mov dword [0x4fa640], eax
jmp 0x407ebc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [ebp - 0x30]
mov esi, dword [0x4fa644]
test esi, esi
je 0x40819b
mov eax, dword [ebp - 0x38]
mov esi, dword [esi + 0x144]
mov ecx, esi
push 0xffff
push ebx
push 0x406150
push eax
call dword [0x4c758c]
call esi
mov esi, dword [0x4fa644]
xor ecx, ecx
test edi, edi
mov eax, ebx
cmove eax, ecx
mov dword [ebp - 0x38], eax
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x34], ecx
test esi, esi
jne 0x407f73
push str.sciter.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x407f5f
push str.SciterAPI
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x407f55
mov ecx, ebx
call dword [0x4c758c]
call ebx
mov dword [0x4fa644], eax
mov esi, dword [eax + 0x26c]
mov ecx, esi
call dword [0x4c758c]
call esi
mov ebx, dword [ebp - 0x30]
test eax, eax
je 0x407f5f
mov dword [0x4fa640], eax
jmp 0x407f5f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [ebp - 0x30]
mov esi, dword [0x4fa644]
test esi, esi
je 0x40819b
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov esi, dword [esi + 0x24]
push eax
push 0x409660
push ecx
mov ecx, esi
call dword [0x4c758c]
call esi
mov eax, dword [ebx]
mov esi, dword [eax + 0x78]
mov ecx, esi
call dword [0x4c758c]
mov ecx, ebx
call esi
mov ecx, ebx
call fcn.00407cb0
push 5
push str.ja_JP
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.004038a0
lea ecx, [ebp - 0x28]
call fcn.00408b70
mov edx, dword [ebp - 0x14]
mov byte [ebp - 0x29], al
cmp edx, 8
jb 0x40800b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407ffe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4081a2
push edx
push ecx
call fcn.00450975
mov al, byte [ebp - 0x29]
add esp, 8
test al, al
je 0x408053
mov ecx, dword [edi]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
call fcn.00402160
push dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
call fcn.00402400
push 0x4e136c
push str.lang
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
call fcn.004026e0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x34]
jmp 0x408102
push 5
push str.th_TH
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.004038a0
lea ecx, [ebp - 0x28]
call fcn.00408b70
mov edx, dword [ebp - 0x14]
mov byte [ebp - 0x29], al
cmp edx, 8
jb 0x4080bf
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4080b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4081a2
push edx
push ecx
call fcn.00450975
mov al, byte [ebp - 0x29]
add esp, 8
test al, al
je 0x40810e
mov ecx, dword [edi]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
call fcn.00402160
push dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
call fcn.00402400
push 0x4e137c
push str.lang
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 2
call fcn.004026e0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.004024a0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
push dword [0x4fa86c]
push dword [edi]
call dword [sym.imp.USER32.dll_ChangeWindowMessageFilterEx]
call fcn.00408970
mov ecx, dword [edi]
lea edx, [ebp - 0x38]
mov byte [ebp - 0x30], al
mov dword [ebp - 0x38], 0
call fcn.00402160
push dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
call fcn.00402400
mov dword [ebp - 4], 4
push dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00404710
mov eax, dword [ebx]
mov esi, dword [eax + 0xb8]
mov ecx, esi
call dword [0x4c758c]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 5
call fcn.004024a0
mov eax, 1
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.00450df0
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.004a32de
call fcn.004984ff
int3