Function at 0x40fad0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d144
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44d034]
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
xor eax, eax
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
mov dword [ebp - 0x24], eax
movq qword [ebp - 0x1c], xmm0
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
call fcn.0040ff10
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp esi, edi
je 0x40fc4c
cmp dword [esi + 0x14], 8
jb 0x40fb3f
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
jmp 0x40fb44
mov eax, esi
mov dword [ebp - 0x28], esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
cmp ecx, ebx
mov ecx, dword [ebp - 0x24]
jae 0x40fbcf
lea edx, [ebp - 0x2c]
cmp ecx, edx
ja 0x40fbcf
sub edx, ecx
sar edx, 2
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x20]
cmp ebx, edx
jne 0x40fbc3
mov eax, edx
sub eax, ebx
sar eax, 2
cmp eax, 1
jae 0x40fbc3
sub ebx, ecx
mov eax, 0x3fffffff
sar ebx, 2
sub eax, ebx
cmp eax, 1
jb 0x40fcba
sub edx, ecx
inc ebx
sar edx, 2
mov ecx, 0x3fffffff
mov eax, edx
mov dword [ebp - 0x20], edx
shr eax, 1
sub ecx, eax
add eax, edx
xor edx, edx
cmp ecx, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
cmovae edx, eax
cmp edx, ebx
cmovae ebx, edx
push ebx
call fcn.004103a0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x28]
test ebx, ebx
je 0x40fc3b
mov eax, dword [ecx + eax*4]
jmp 0x40fc39
mov edx, dword [ebp - 0x20]
cmp ebx, edx
jne 0x40fc35
mov eax, edx
sub eax, ebx
sar eax, 2
cmp eax, 1
jae 0x40fc32
sub ebx, ecx
mov eax, 0x3fffffff
sar ebx, 2
sub eax, ebx
cmp eax, 1
jb 0x40fcba
sub edx, ecx
inc ebx
sar edx, 2
mov ecx, 0x3fffffff
mov eax, edx
mov dword [ebp - 0x20], edx
shr eax, 1
sub ecx, eax
add eax, edx
xor edx, edx
cmp ecx, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
cmovae edx, eax
cmp edx, ebx
cmovae ebx, edx
push ebx
call fcn.004103a0
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
test ebx, ebx
je 0x40fc3b
mov dword [ebx], eax
add ebx, 4
add esi, 0x18
mov dword [ebp - 0x18], ebx
cmp esi, edi
jne 0x40fb32
mov eax, dword fs:[0x2c]
mov esi, dword [ebp - 0x24]
sub ebx, esi
sar ebx, 2
mov ecx, dword [eax]
mov eax, dword [0x451dbc]
cmp eax, dword [ecx + 4]
jle 0x40fcf1
push 0x451dbc
call fcn.00414fac
add esp, 4
cmp dword [0x451dbc], 0xffffffff
jne 0x40fcf1
mov byte [ebp - 4], 1
mov eax, dword [0x451db8]
test eax, eax
jne 0x40fcdb
push 0x43433c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x40fccb
push str.SciterAPI
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fcc4
call eax
mov dword [0x451db8], eax
jmp 0x40fcd0
push str.vector_T__too_long
call fcn.00415b85
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x451db8]
test eax, eax
jne 0x40fcdb
push 0xffffffffffffffff
call fcn.0041a503
push 0x451dbc
mov dword [0x451dc0], eax
mov byte [ebp - 4], 0
call fcn.00414f6d
add esp, 4
mov eax, dword [0x451dc0]
push esi
push ebx
push 2
mov eax, dword [eax + 0x2e0]
call eax
test esi, esi
je 0x40fd5c
mov eax, dword [ebp - 0x20]
sub eax, esi
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x40fd1a
call fcn.0041a6f3
shl eax, 2
cmp eax, 0x1000
jb 0x40fd53
test byte [ebp - 0x1c], 0x1f
je 0x40fd2f
call fcn.0041a6f3
mov eax, dword [esi - 4]
cmp eax, esi
jb 0x40fd3b
call fcn.0041a6f3
sub esi, eax
cmp esi, 4
jae 0x40fd47
call fcn.0041a6f3
cmp esi, 0x23
jbe 0x40fd51
call fcn.0041a6f3
mov esi, eax
push esi
call fcn.004150b1
add esp, 4
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.0041498e
mov esp, ebp
pop ebp
ret