Function at 0x40f4a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c7e4
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44b034]
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.0040f8e0
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp esi, edi
je 0x40f61c
cmp dword [esi + 0x14], 8
jb 0x40f50f
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
jmp 0x40f514
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 0x40f59f
lea edx, [ebp - 0x2c]
cmp ecx, edx
ja 0x40f59f
sub edx, ecx
sar edx, 2
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x20]
cmp ebx, edx
jne 0x40f593
mov eax, edx
sub eax, ebx
sar eax, 2
cmp eax, 1
jae 0x40f593
sub ebx, ecx
mov eax, 0x3fffffff
sar ebx, 2
sub eax, ebx
cmp eax, 1
jb 0x40f68a
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.0040fd70
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 0x40f60b
mov eax, dword [ecx + eax*4]
jmp 0x40f609
mov edx, dword [ebp - 0x20]
cmp ebx, edx
jne 0x40f605
mov eax, edx
sub eax, ebx
sar eax, 2
cmp eax, 1
jae 0x40f602
sub ebx, ecx
mov eax, 0x3fffffff
sar ebx, 2
sub eax, ebx
cmp eax, 1
jb 0x40f68a
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.0040fd70
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 0x40f60b
mov dword [ebx], eax
add ebx, 4
add esi, 0x18
mov dword [ebp - 0x18], ebx
cmp esi, edi
jne 0x40f502
mov eax, dword fs:[0x2c]
mov esi, dword [ebp - 0x24]
sub ebx, esi
sar ebx, 2
mov ecx, dword [eax]
mov eax, dword [0x44fdb8]
cmp eax, dword [ecx + 4]
jle 0x40f6c1
push 0x44fdb8
call fcn.0041466e
add esp, 4
cmp dword [0x44fdb8], 0xffffffff
jne 0x40f6c1
mov byte [ebp - 4], 1
mov eax, dword [0x44fdb4]
test eax, eax
jne 0x40f6ab
push 0x43330c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x40f69b
push str.SciterAPI
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f694
call eax
mov dword [0x44fdb4], eax
jmp 0x40f6a0
push str.vector_T__too_long
call fcn.004151f5
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x44fdb4]
test eax, eax
jne 0x40f6ab
push 0xffffffffffffffff
call fcn.00419bb0
push 0x44fdb8
mov dword [0x44fdbc], eax
mov byte [ebp - 4], 0
call fcn.0041462f
add esp, 4
mov eax, dword [0x44fdbc]
push esi
push ebx
push 2
mov eax, dword [eax + 0x2e0]
call eax
test esi, esi
je 0x40f72c
mov eax, dword [ebp - 0x20]
sub eax, esi
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x40f6ea
call fcn.00419da0
shl eax, 2
cmp eax, 0x1000
jb 0x40f723
test byte [ebp - 0x1c], 0x1f
je 0x40f6ff
call fcn.00419da0
mov eax, dword [esi - 4]
cmp eax, esi
jb 0x40f70b
call fcn.00419da0
sub esi, eax
cmp esi, 4
jae 0x40f717
call fcn.00419da0
cmp esi, 0x23
jbe 0x40f721
call fcn.00419da0
mov esi, eax
push esi
call fcn.00414772
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.00414033
mov esp, ebp
pop ebp
ret