Function at 0x40f590
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cb74
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x444034]
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.0040f9d0
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp esi, edi
je 0x40f70c
cmp dword [esi + 0x14], 8
jb 0x40f5ff
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
jmp 0x40f604
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 0x40f68f
lea edx, [ebp - 0x2c]
cmp ecx, edx
ja 0x40f68f
sub edx, ecx
sar edx, 2
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x20]
cmp ebx, edx
jne 0x40f683
mov eax, edx
sub eax, ebx
sar eax, 2
cmp eax, 1
jae 0x40f683
sub ebx, ecx
mov eax, 0x3fffffff
sar ebx, 2
sub eax, ebx
cmp eax, 1
jb 0x40f77a
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.0040fe60
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 0x40f6fb
mov eax, dword [ecx + eax*4]
jmp 0x40f6f9
mov edx, dword [ebp - 0x20]
cmp ebx, edx
jne 0x40f6f5
mov eax, edx
sub eax, ebx
sar eax, 2
cmp eax, 1
jae 0x40f6f2
sub ebx, ecx
mov eax, 0x3fffffff
sar ebx, 2
sub eax, ebx
cmp eax, 1
jb 0x40f77a
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.0040fe60
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 0x40f6fb
mov dword [ebx], eax
add ebx, 4
add esi, 0x18
mov dword [ebp - 0x18], ebx
cmp esi, edi
jne 0x40f5f2
mov eax, dword fs:[0x2c]
mov esi, dword [ebp - 0x24]
sub ebx, esi
sar ebx, 2
mov ecx, dword [eax]
mov eax, dword [0x448dbc]
cmp eax, dword [ecx + 4]
jle 0x40f7b1
push 0x448dbc
call fcn.00414aa9
add esp, 4
cmp dword [0x448dbc], 0xffffffff
jne 0x40f7b1
mov byte [ebp - 4], 1
mov eax, dword [0x448db8]
test eax, eax
jne 0x40f79b
push 0x43425c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x40f78b
push str.SciterAPI
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f784
call eax
mov dword [0x448db8], eax
jmp 0x40f790
push str.vector_T__too_long
call fcn.0041565b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x448db8]
test eax, eax
jne 0x40f79b
push 0xffffffffffffffff
call fcn.00419fda
push 0x448dbc
mov dword [0x448dc0], eax
mov byte [ebp - 4], 0
call fcn.00414a6a
add esp, 4
mov eax, dword [0x448dc0]
push esi
push ebx
push 2
mov eax, dword [eax + 0x2e0]
call eax
test esi, esi
je 0x40f81c
mov eax, dword [ebp - 0x20]
sub eax, esi
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x40f7da
call fcn.0041a1ca
shl eax, 2
cmp eax, 0x1000
jb 0x40f813
test byte [ebp - 0x1c], 0x1f
je 0x40f7ef
call fcn.0041a1ca
mov eax, dword [esi - 4]
cmp eax, esi
jb 0x40f7fb
call fcn.0041a1ca
sub esi, eax
cmp esi, 4
jae 0x40f807
call fcn.0041a1ca
cmp esi, 0x23
jbe 0x40f811
call fcn.0041a1ca
mov esi, eax
push esi
call fcn.00414bad
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.0041446e
mov esp, ebp
pop ebp
ret